summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-19 22:05:52 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-19 22:05:52 (GMT)
commitcca8507758d69f8109ef25cd610218cfb4a3326b (patch)
treec84a1a4eba43beda4a9b29726bf1d33bc8004bf0 /Modules
parent0408bf9cfb0dac07bf378f10af771fab41ba0d52 (diff)
parentd17ca23828287eb79f28de7c50acf25c29b41e4e (diff)
downloadcpython-cca8507758d69f8109ef25cd610218cfb4a3326b.zip
cpython-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.gz
cpython-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.bz2
merge heads in 3.3
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 4e1449b..35f9fc1 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1138,7 +1138,9 @@ PyCursesWindow_GetKey(PyCursesWindowObject *self, PyObject *args)
}
if (rtn == ERR) {
/* getch() returns ERR in nodelay mode */
- PyErr_SetString(PyCursesError, "no input");
+ PyErr_CheckSignals();
+ if (!PyErr_Occurred())
+ PyErr_SetString(PyCursesError, "no input");
return NULL;
} else if (rtn<=255) {
return Py_BuildValue("C", rtn);