diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-31 20:44:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 20:44:59 (GMT) |
commit | 462f07040b39b778aa782d0f62050b70416dec7b (patch) | |
tree | cfddc2d1450ccb790b054e1439f7eb60dfab075c /Modules/_cursesmodule.c | |
parent | 77fcccb5321137456549b7f55b819f2c8a4c78a4 (diff) | |
download | cpython-462f07040b39b778aa782d0f62050b70416dec7b.zip cpython-462f07040b39b778aa782d0f62050b70416dec7b.tar.gz cpython-462f07040b39b778aa782d0f62050b70416dec7b.tar.bz2 |
bpo-37695: Correct unget_wch error message. (GH-14986)
(cherry picked from commit c9345e382c630ddcc2b148b30954640e0e435c8a)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
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 2435e1c..8fca7fc 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; } |