Commit 0d94203c authored by Neal Norwitz's avatar Neal Norwitz

Use unicode for the errno.errorcode names

parent 9af3ae42
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment