[Python-checkins] r73281 - python/trunk/Parser/asdl.py
benjamin.peterson
python-checkins at python.org
Mon Jun 8 00:55:36 CEST 2009
Author: benjamin.peterson
Date: Mon Jun 8 00:55:36 2009
New Revision: 73281
Log:
remove has_key
Modified:
python/trunk/Parser/asdl.py
Modified: python/trunk/Parser/asdl.py
==============================================================================
--- python/trunk/Parser/asdl.py (original)
+++ python/trunk/Parser/asdl.py Mon Jun 8 00:55:36 2009
@@ -371,7 +371,7 @@
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)
More information about the Python-checkins
mailing list