summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-23 21:42:55 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-23 21:42:55 (GMT)
commit53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219 (patch)
tree40d00a2f819472aa21bd32b505a53c394019db82 /Objects/listobject.c
parentd6d2f2f93919d035929ac9d02244657a9b604413 (diff)
downloadcpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.zip
cpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.tar.gz
cpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.tar.bz2
Convert a bunch of constant strings in C to unicode.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 7e2483e..50d9d9b 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -142,7 +142,7 @@ PyList_GetItem(PyObject *op, Py_ssize_t i)
}
if (i < 0 || i >= Py_Size(op)) {
if (indexerr == NULL)
- indexerr = PyString_FromString(
+ indexerr = PyUnicode_FromString(
"list index out of range");
PyErr_SetObject(PyExc_IndexError, indexerr);
return NULL;
@@ -362,7 +362,7 @@ list_item(PyListObject *a, Py_ssize_t i)
{
if (i < 0 || i >= Py_Size(a)) {
if (indexerr == NULL)
- indexerr = PyString_FromString(
+ indexerr = PyUnicode_FromString(
"list index out of range");
PyErr_SetObject(PyExc_IndexError, indexerr);
return NULL;