From: Benjamin Peterson Date: Sun, 7 Jun 2009 22:55:36 +0000 (+0000) Subject: remove has_key X-Git-Tag: v2.7a1~1009 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4347a259cc48fa1b30d3c1f3e543e4780a98f33;p=thirdparty%2FPython%2Fcpython.git remove has_key --- diff --git a/Parser/asdl.py b/Parser/asdl.py index 74fff93a50d3..c55038da5ca3 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -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)