commit | 34e4f52fea47567f51a9ce952b57ea29d6f64f3f | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri Dec 29 04:42:48 2006 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri Dec 29 04:42:48 2006 +0000 |
tree | b7cc7980a7092a5b69f1f494082268782a452324 | |
parent | 3203bdc676ab94aab74753e46247e0fa91d1963e [diff] [blame] |
avoid dict.has_key, since this might get used by a Py3K built in the working copy
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 @@ 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)