mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
replace has_key with 'in' operator
This commit is contained in:
parent
de0559998f
commit
6e3dbbdf39
29 changed files with 71 additions and 71 deletions
|
@ -182,7 +182,7 @@ if __name__ == '__main__':
|
|||
L = []
|
||||
_curses.initscr()
|
||||
for key in _capability_names.keys():
|
||||
system = _curses.has_key(key)
|
||||
system = key in _curses
|
||||
python = has_key(key)
|
||||
if system != python:
|
||||
L.append( 'Mismatch for key %s, system=%i, Python=%i'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue