From 257830520f2cbaec5a85b7a52ecdf98f28e337c8 Mon Sep 17 00:00:00 2001 From: Reinier Heeres Date: Thu, 12 Mar 2009 21:17:03 +0000 Subject: Fix parsing of (in)equality expressions --- (limited to 'astparser.py') 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, } -- cgit v0.9.1