]> granicus.if.org Git - python/commitdiff
unichr() is named chr() now => fix name in error message.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 5 Jun 2007 20:02:26 +0000 (20:02 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 5 Jun 2007 20:02:26 +0000 (20:02 +0000)
Objects/unicodeobject.c

index 55d03844d65bee84bd2c8cb5f2e2d7c1ae5525d5..e793418813f0af171b5200b7c1973ded22e6cd0c 100644 (file)
@@ -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;
     }