diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-01 01:21:11 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-01 01:21:11 (GMT) |
commit | b45bd325b5e816a939c78fc4a3f421cf65a9dc19 (patch) | |
tree | 193c29036f64e71cea2763234fb8f2bdf4ef975b /Lib/curses/__init__.py | |
parent | f917bf6080633e8fa87c3d61c83dddc3b3c853ed (diff) | |
download | cpython-b45bd325b5e816a939c78fc4a3f421cf65a9dc19.zip cpython-b45bd325b5e816a939c78fc4a3f421cf65a9dc19.tar.gz cpython-b45bd325b5e816a939c78fc4a3f421cf65a9dc19.tar.bz2 |
Added Python function to emulate the ncurses has_key() function.
Diffstat (limited to 'Lib/curses/__init__.py')
-rw-r--r-- | Lib/curses/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/curses/__init__.py b/Lib/curses/__init__.py index 1808ee6..6bcd566 100644 --- a/Lib/curses/__init__.py +++ b/Lib/curses/__init__.py @@ -32,3 +32,10 @@ def initscr(): return stdscr +# Import Python has_key() implementation if _curses doesn't contain has_key() + +try: + has_key +except NameError: + from has_key import has_key + |