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:
parent
55299fffe3
commit
3219bbf6a1
|
@ -182,7 +182,7 @@ if __name__ == '__main__':
|
||||||
L = []
|
L = []
|
||||||
_curses.initscr()
|
_curses.initscr()
|
||||||
for key in _capability_names.keys():
|
for key in _capability_names.keys():
|
||||||
system = key in _curses
|
system = _curses.has_key(key)
|
||||||
python = has_key(key)
|
python = has_key(key)
|
||||||
if system != python:
|
if system != python:
|
||||||
L.append( 'Mismatch for key %s, system=%i, Python=%i'
|
L.append( 'Mismatch for key %s, system=%i, Python=%i'
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix running ``python -m curses.has_key``.
|
Loading…
Reference in New Issue