From b4347a259cc48fa1b30d3c1f3e543e4780a98f33 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 7 Jun 2009 22:55:36 +0000 Subject: remove has_key --- Parser/asdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/asdl.py b/Parser/asdl.py index 74fff93..c55038d 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -371,7 +371,7 @@ def check(mod): v.visit(mod) for t in v.types: - if not mod.types.has_key(t) and not t in builtin_types: + if t not in mod.types and not t in builtin_types: v.errors += 1 uses = ", ".join(v.types[t]) print "Undefined type %s, used in %s" % (t, uses) -- cgit v0.12