fix running the curses.has_key module (closes bpo-33359) (GH-6608)

This was broken by poor automated translation back in 6e3dbbdf39.
This commit is contained in:
Benjamin Peterson 2018-04-25 22:57:34 -07:00 committed by GitHub
parent 55299fffe3
commit 3219bbf6a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,7 @@ if __name__ == '__main__':
L = []
_curses.initscr()
for key in _capability_names.keys():
system = key in _curses
system = _curses.has_key(key)
python = has_key(key)
if system != python:
L.append( 'Mismatch for key %s, system=%i, Python=%i'

View File

@ -0,0 +1 @@
Fix running ``python -m curses.has_key``.