Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 15654:6405f30aa08c legacy-trunk
CHange error messages for ord(), using "string" instead of "string or Unicode"
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Sat, 23 Dec 2000 14:11:28 +0000 |
| parents | 7fb7c51a2e61 |
| children | 641ad6c833be |
line wrap: on
line diff
--- a/Python/bltinmodule.c Sat Dec 23 05:46:23 2000 +0000 +++ b/Python/bltinmodule.c Sat Dec 23 14:11:28 2000 +0000 @@ -1524,13 +1524,14 @@ } } else { PyErr_Format(PyExc_TypeError, - "ord() expected string or Unicode character, " \ + "ord() expected string of length 1, but " \ "%.200s found", obj->ob_type->tp_name); return NULL; } PyErr_Format(PyExc_TypeError, - "ord() expected a character, length-%d string found", + "ord() expected a character, " + "but string of length %d found", size); return NULL; }
