diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-07 22:55:36 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-07 22:55:36 (GMT) |
commit | b4347a259cc48fa1b30d3c1f3e543e4780a98f33 (patch) | |
tree | 527155dcf8e76871308c1561e45e929a627dcf85 /Parser | |
parent | 5c33d86b4bd654b015a0f2e17d02718a36117ae2 (diff) | |
download | cpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.zip cpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.tar.gz cpython-b4347a259cc48fa1b30d3c1f3e543e4780a98f33.tar.bz2 |
remove has_key
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/asdl.py | 2 |
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) |