Kaydet (Commit) b4347a25 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

remove has_key

üst 5c33d86b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment