summaryrefslogtreecommitdiffstats
path: root/Parser/asdl.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2006-12-29 04:42:48 (GMT)
committerFred Drake <fdrake@acm.org>2006-12-29 04:42:48 (GMT)
commit34e4f52fea47567f51a9ce952b57ea29d6f64f3f (patch)
treeb7cc7980a7092a5b69f1f494082268782a452324 /Parser/asdl.py
parent3203bdc676ab94aab74753e46247e0fa91d1963e (diff)
downloadcpython-34e4f52fea47567f51a9ce952b57ea29d6f64f3f.zip
cpython-34e4f52fea47567f51a9ce952b57ea29d6f64f3f.tar.gz
cpython-34e4f52fea47567f51a9ce952b57ea29d6f64f3f.tar.bz2
avoid dict.has_key, since this might get used by a Py3K built in the
working copy
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index d6f5ec5..08dc848 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -373,7 +373,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)