소스 검색

Improved assertion.

Taddeus Kroes 14 년 전
부모
커밋
ed76902d15
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)