Commit ed76902d authored by Taddeus Kroes's avatar Taddeus Kroes

Improved assertion.

parent 9a8d9d5a
......@@ -239,7 +239,7 @@ class ExpressionBase(object):
def reduce_negation(self, n=1):
"""Remove n negation flags from the node."""
assert self.negated
assert self.negated >= n
return self.negate(-n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment