summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 51f4c38..7847d39 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
- PyCursesCheckERR(typeahead( fd ), "typeahead");
- Py_INCREF(Py_None);
- return Py_None;
+ return PyCursesCheckERR(typeahead( fd ), "typeahead");
}
static PyObject *