]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove has_key
authorBenjamin Peterson <benjamin@python.org>
Sun, 7 Jun 2009 22:55:36 +0000 (22:55 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 7 Jun 2009 22:55:36 +0000 (22:55 +0000)
Parser/asdl.py

index 74fff93a50d3dd8ccc59b86b0fb8f5b400ea05d2..c55038da5ca395b030fd979ea3b080597adb752a 100644 (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)