summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-07 22:55:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-07 22:55:36 (GMT)
commitb4347a259cc48fa1b30d3c1f3e543e4780a98f33 (patch)
tree527155dcf8e76871308c1561e45e929a627dcf85 /Parser
parent5c33d86b4bd654b015a0f2e17d02718a36117ae2 (diff)
downloadcpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.zip
cpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.tar.gz
cpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.tar.bz2
remove has_key
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl.py2
1 files changed, 1 insertions, 1 deletions
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)