There was an error while loading. Please reload this page.
1 parent 9af3ae4 commit 0d94203Copy full SHA for 0d94203
1 file changed
Modules/errnomodule.c
@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = {
19
/* Helper function doing the dictionary inserting */
20
21
static void
22
-_inscode(PyObject *d, PyObject *de, char *name, int code)
+_inscode(PyObject *d, PyObject *de, const char *name, int code)
23
{
24
- PyObject *u = PyString_FromString(name);
+ PyObject *u = PyUnicode_FromString(name);
25
PyObject *v = PyInt_FromLong((long) code);
26
27
/* Don't bother checking for errors; they'll be caught at the end
0 commit comments