summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-05 20:02:26 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-05 20:02:26 (GMT)
commitb41bb7953bce77ec73844523732ac89fd54ec614 (patch)
tree336abeed37106975416e5c8a978fad0a115a8c69
parent233ccf289353edb5486304630ebb1755f87738ec (diff)
downloadcpython-b41bb7953bce77ec73844523732ac89fd54ec614.zip
cpython-b41bb7953bce77ec73844523732ac89fd54ec614.tar.gz
cpython-b41bb7953bce77ec73844523732ac89fd54ec614.tar.bz2
unichr() is named chr() now => fix name in error message.
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 55d0384..e793418 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;
}