remove has_key

This commit is contained in:
Benjamin Peterson 2009-06-07 22:55:36 +00:00
parent 5c33d86b4b
commit b4347a259c

View file

@ -371,7 +371,7 @@ def check(mod):
v.visit(mod) v.visit(mod)
for t in v.types: 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 v.errors += 1
uses = ", ".join(v.types[t]) uses = ", ".join(v.types[t])
print "Undefined type %s, used in %s" % (t, uses) print "Undefined type %s, used in %s" % (t, uses)