diff options
| author | Walter Dörwald <walter@livinglogic.de> | 2007-06-05 20:02:26 +0000 |
|---|---|---|
| committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-05 20:02:26 +0000 |
| commit | ec4619b7322258483f4e163a32122d575b1ca336 (patch) | |
| tree | d39d2383942e0ca164a0fb4eb2e057c67d323e1e | |
| parent | 648ecd657934937851162292542d84e1217db6ba (diff) | |
| download | cpython-ec4619b7322258483f4e163a32122d575b1ca336.tar.gz | |
unichr() is named chr() now => fix name in error message.
| -rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 55d03844d6..e793418813 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -891,14 +891,14 @@ PyObject *PyUnicode_FromOrdinal(int ordinal) #ifdef Py_UNICODE_WIDE if (ordinal < 0 || ordinal > 0x10ffff) { PyErr_SetString(PyExc_ValueError, - "unichr() arg not in range(0x110000) " + "chr() arg not in range(0x110000) " "(wide Python build)"); return NULL; } #else if (ordinal < 0 || ordinal > 0xffff) { PyErr_SetString(PyExc_ValueError, - "unichr() arg not in range(0x10000) " + "chr() arg not in range(0x10000) " "(narrow Python build)"); return NULL; } |
