Sfoglia il codice sorgente

Improved assertion.

Taddeus Kroes 14 anni fa
parent
commit
ed76902d15
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)