mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
@ -45,7 +45,7 @@ def type_to_name(gtype):
|
|||
for name in _names:
|
||||
if name[:2] == 'A_':
|
||||
_type_to_name_map[eval(name)] = name[2:]
|
||||
if _type_to_name_map.has_key(gtype):
|
||||
if gtype in _type_to_name_map:
|
||||
return _type_to_name_map[gtype]
|
||||
return 'TYPE=' + `gtype`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue