diff options
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 971231a..659ebce 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -844,9 +844,9 @@ PyCursesWindow_GetKey(PyCursesWindowObject *self, PyObject *args) return Py_BuildValue("c", rtn); else #if defined(__NetBSD__) - return PyString_FromString(unctrl(rtn)); + return PyUnicode_FromString(unctrl(rtn)); #else - return PyString_FromString((char *)keyname(rtn)); + return PyUnicode_FromString((const char *)keyname(rtn)); #endif } |