Commit 3efb73dd authored by Neal Norwitz's avatar Neal Norwitz

Use unicode for the errno.errorcode names

parent aacdc877
...@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = { ...@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = {
/* Helper function doing the dictionary inserting */ /* Helper function doing the dictionary inserting */
static void 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); PyObject *v = PyInt_FromLong((long) code);
/* Don't bother checking for errors; they'll be caught at the end /* 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