From 0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 24 Aug 2007 00:10:00 +0000 Subject: Use unicode for the errno.errorcode names --- Modules/errnomodule.c | 4 ++-- 1 file 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 -- cgit v0.12