summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-07-31 12:11:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-07-31 12:11:24 (GMT)
commitc9345e382c630ddcc2b148b30954640e0e435c8a (patch)
tree44d4e3817f3e1bf9b447c9f382cae6dfe17f1e4f /Modules/_cursesmodule.c
parent31c4fd2a10d90beaa37d630e5f74a471e14e089d (diff)
downloadcpython-c9345e382c630ddcc2b148b30954640e0e435c8a.zip
cpython-c9345e382c630ddcc2b148b30954640e0e435c8a.tar.gz
cpython-c9345e382c630ddcc2b148b30954640e0e435c8a.tar.bz2
bpo-37695: Correct unget_wch error message. (GH-14986)
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 8595b62..dbe3c99 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -4176,7 +4176,7 @@ PyCurses_ConvertToWchar_t(PyObject *obj,
wchar_t buffer[2];
if (PyUnicode_AsWideChar(obj, buffer, 2) != 1) {
PyErr_Format(PyExc_TypeError,
- "expect bytes or str of length 1, or int, "
+ "expect str of length 1 or int, "
"got a str of length %zi",
PyUnicode_GET_LENGTH(obj));
return 0;
@@ -4203,7 +4203,7 @@ PyCurses_ConvertToWchar_t(PyObject *obj,
}
else {
PyErr_Format(PyExc_TypeError,
- "expect bytes or str of length 1, or int, got %s",
+ "expect str of length 1 or int, got %s",
Py_TYPE(obj)->tp_name);
return 0;
}