remove has_key
This commit is contained in:
parent
5c33d86b4b
commit
b4347a259c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue