| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = { | |||
| 19 | 19 | /* Helper function doing the dictionary inserting */ | |
| 20 | 20 | ||
| 21 | 21 | static void | |
| 22 | - _inscode(PyObject *d, PyObject *de, char *name, int code) | ||
| 22 | + _inscode(PyObject *d, PyObject *de, const char *name, int code) | ||
| 23 | 23 | { | |
| 24 | - PyObject *u = PyString_FromString(name); | ||
| 24 | + PyObject *u = PyUnicode_FromString(name); | ||
| 25 | 25 | PyObject *v = PyInt_FromLong((long) code); | |
| 26 | 26 | ||
| 27 | 27 | /* Don't bother checking for errors; they'll be caught at the end | |
| Back | FazBrowse Home | New Git URL |
0 commit comments