mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
remove has_key
This commit is contained in:
parent
5c33d86b4b
commit
b4347a259c
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ def check(mod):
|
||||||
v.visit(mod)
|
v.visit(mod)
|
||||||
|
|
||||||
for t in v.types:
|
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
|
v.errors += 1
|
||||||
uses = ", ".join(v.types[t])
|
uses = ", ".join(v.types[t])
|
||||||
print "Undefined type %s, used in %s" % (t, uses)
|
print "Undefined type %s, used in %s" % (t, uses)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue