diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-07-31 05:11:24 -0700 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-07-31 15:11:24 +0300 |
| commit | c9345e382c630ddcc2b148b30954640e0e435c8a (patch) | |
| tree | 44d4e3817f3e1bf9b447c9f382cae6dfe17f1e4f /Modules/_cursesmodule.c | |
| parent | 31c4fd2a10d90beaa37d630e5f74a471e14e089d (diff) | |
| download | cpython-git-c9345e382c630ddcc2b148b30954640e0e435c8a.tar.gz | |
bpo-37695: Correct unget_wch error message. (GH-14986)
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 8595b6282c..dbe3c99d7d 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; } |
