From c9345e382c630ddcc2b148b30954640e0e435c8a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 31 Jul 2019 05:11:24 -0700 Subject: bpo-37695: Correct unget_wch error message. (GH-14986) --- Modules/_cursesmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/_cursesmodule.c') 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; } -- cgit v1.2.1