Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2009-03-12 21:17:03 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2009-03-12 21:17:03 (GMT)
commit257830520f2cbaec5a85b7a52ecdf98f28e337c8 (patch)
tree45078af9aa8003c2fe9fa3f2531f5d5efbe04656
parentf9d3fd44ac84f213304c2cb48d13e63fb9090fe8 (diff)
Fix parsing of (in)equality expressions
-rw-r--r--astparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astparser.py b/astparser.py
index c026418..93dd224 100644
--- a/astparser.py
+++ b/astparser.py
@@ -207,8 +207,8 @@ class AstParser:
CMPOP_MAP = {
ast.Gt: lambda x, y: x > y,
ast.GtE: lambda x, y: x >= y,
- ast.Is: lambda x, y: x == y,
- ast.IsNot: lambda x, y: x != y,
+ ast.Eq: lambda x, y: x == y,
+ ast.NotEq: lambda x, y: x != y,
ast.Lt: lambda x, y: x < y,
ast.LtE: lambda x, y: x <= y,
}