mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
avoid dict.has_key, since this might get used by a Py3K built in the
working copy
This commit is contained in:
parent
3203bdc676
commit
34e4f52fea
2 changed files with 15 additions and 15 deletions
|
@ -373,7 +373,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…
Add table
Add a link
Reference in a new issue