Skip to content

Commit 3219bbf

Browse files
authored
fix running the curses.has_key module (closes bpo-33359) (pythonGH-6608)
This was broken by poor automated translation back in 6e3dbbd.
1 parent 55299ff commit 3219bbf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/curses/has_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def has_key(ch):
182182
L = []
183183
_curses.initscr()
184184
for key in _capability_names.keys():
185-
system = key in _curses
185+
system = _curses.has_key(key)
186186
python = has_key(key)
187187
if system != python:
188188
L.append( 'Mismatch for key %s, system=%i, Python=%i'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix running ``python -m curses.has_key``.

0 commit comments

Comments
 (0)