[Python-3000-checkins] r55778 - python/branches/py3k-struni/Objects/unicodeobject.c
walter.doerwald
python-3000-checkins at python.org
Tue Jun 5 22:02:28 CEST 2007
Author: walter.doerwald
Date: Tue Jun 5 22:02:26 2007
New Revision: 55778
Modified:
python/branches/py3k-struni/Objects/unicodeobject.c
Log:
unichr() is named chr() now => fix name in error message.
Modified: python/branches/py3k-struni/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k-struni/Objects/unicodeobject.c (original)
+++ python/branches/py3k-struni/Objects/unicodeobject.c Tue Jun 5 22:02:26 2007
@@ -891,14 +891,14 @@
#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;
}
More information about the Python-3000-checkins
mailing list