diff options
| author | Benjamin Peterson <benjamin@python.org> | 2018-04-26 05:57:34 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-26 05:57:34 (GMT) |
| commit | 3219bbf6a159110d293dcfef2d5889ab020f4c5b (patch) | |
| tree | a4296a3e6c70eaa99325414be7252cad3eac1b82 | |
| parent | 55299fffe328c3d2dfc222a22116b7e53bf2e962 (diff) | |
| download | cpython-3219bbf6a159110d293dcfef2d5889ab020f4c5b.zip cpython-3219bbf6a159110d293dcfef2d5889ab020f4c5b.tar.gz cpython-3219bbf6a159110d293dcfef2d5889ab020f4c5b.tar.bz2 | |
fix running the curses.has_key module (closes bpo-33359) (GH-6608)
This was broken by poor automated translation back in 6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc.
| -rw-r--r-- | Lib/curses/has_key.py | 2 | ||||
| -rw-r--r-- | Misc/NEWS.d/next/Library/2018-04-25-22-41-04.bpo-33359.Nr4CzK.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/curses/has_key.py b/Lib/curses/has_key.py index 1dd5a3b..60b7be9 100644 --- a/Lib/curses/has_key.py +++ b/Lib/curses/has_key.py @@ -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' diff --git a/Misc/NEWS.d/next/Library/2018-04-25-22-41-04.bpo-33359.Nr4CzK.rst b/Misc/NEWS.d/next/Library/2018-04-25-22-41-04.bpo-33359.Nr4CzK.rst new file mode 100644 index 0000000..5a90f2f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-04-25-22-41-04.bpo-33359.Nr4CzK.rst @@ -0,0 +1 @@ +Fix running ``python -m curses.has_key``. |
