Explorar el Código

Improved assertion.

Taddeus Kroes hace 14 años
padre
commit
ed76902d15
Se han modificado 1 ficheros con 1 adiciones y 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)