avoid dict.has_key, since this might get used by a Py3K built in the

working copy
This commit is contained in:
Fred Drake 2006-12-29 04:42:48 +00:00
parent 3203bdc676
commit 34e4f52fea
2 changed files with 15 additions and 15 deletions

View file

@ -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)