summaryrefslogtreecommitdiffstats
path: root/Modules/errnomodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-24 00:10:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-24 00:10:00 (GMT)
commit0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca (patch)
treefea7148f10d8a4ab39aa54254b7a8b7dbf4c5dfb /Modules/errnomodule.c
parent9af3ae42f82071f9f0b780c88a9919e62854e750 (diff)
downloadcpython-0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca.zip
cpython-0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca.tar.gz
cpython-0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca.tar.bz2
Use unicode for the errno.errorcode names
Diffstat (limited to 'Modules/errnomodule.c')
-rw-r--r--Modules/errnomodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c
index 696d396..21dfe1d 100644
--- a/Modules/errnomodule.c
+++ b/Modules/errnomodule.c
@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = {
/* Helper function doing the dictionary inserting */
static void
-_inscode(PyObject *d, PyObject *de, char *name, int code)
+_inscode(PyObject *d, PyObject *de, const char *name, int code)
{
- PyObject *u = PyString_FromString(name);
+ PyObject *u = PyUnicode_FromString(name);
PyObject *v = PyInt_FromLong((long) code);
/* Don't bother checking for errors; they'll be caught at the end