From: Neal Norwitz Date: Fri, 24 Aug 2007 00:10:00 +0000 (+0000) Subject: Use unicode for the errno.errorcode names X-Git-Tag: v3.0a1~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d94203cc1f2c2f07f79d45f7c6ee0e90bc95eca;p=thirdparty%2FPython%2Fcpython.git Use unicode for the errno.errorcode names --- diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c index 696d396b07ad..21dfe1d3b5d7 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