remove has_key

This commit is contained in:
Benjamin Peterson 2009-06-07 22:55:36 +00:00
parent 5c33d86b4b
commit b4347a259c
1 changed files with 1 additions and 1 deletions

View File

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