Explorar o código

Improved assertion.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
ed76902d15
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/node.py

+ 1 - 1
src/node.py

@@ -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)