summaryrefslogtreecommitdiffstats
path: root/Lib/curses/__init__.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-01 01:21:11 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-01 01:21:11 (GMT)
commitb45bd325b5e816a939c78fc4a3f421cf65a9dc19 (patch)
tree193c29036f64e71cea2763234fb8f2bdf4ef975b /Lib/curses/__init__.py
parentf917bf6080633e8fa87c3d61c83dddc3b3c853ed (diff)
downloadcpython-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__.py7
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
+