Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b41bb79

Browse files
committed
unichr() is named chr() now => fix name in error message.
1 parent 233ccf2 commit b41bb79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,14 +891,14 @@ PyObject *PyUnicode_FromOrdinal(int ordinal)
891891
#ifdef Py_UNICODE_WIDE
892892
if (ordinal < 0 || ordinal > 0x10ffff) {
893893
PyErr_SetString(PyExc_ValueError,
894-
"unichr() arg not in range(0x110000) "
894+
"chr() arg not in range(0x110000) "
895895
"(wide Python build)");
896896
return NULL;
897897
}
898898
#else
899899
if (ordinal < 0 || ordinal > 0xffff) {
900900
PyErr_SetString(PyExc_ValueError,
901-
"unichr() arg not in range(0x10000) "
901+
"chr() arg not in range(0x10000) "
902902
"(narrow Python build)");
903903
return NULL;
904904
}

0 commit comments

Comments
 (0)