FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use unicode for the errno.errorcode names · python-emscripten/cpython@0d94203 · GitHub

Repository navigation

Commit 0d94203

Browse files
committed
Use unicode for the errno.errorcode names
1 parent 9af3ae4 commit 0d94203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Modules/errnomodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ static PyMethodDef errno_methods[] = {
1919
/* Helper function doing the dictionary inserting */
2020

2121
static void
22-
_inscode(PyObject *d, PyObject *de, char *name, int code)
22+
_inscode(PyObject *d, PyObject *de, const char *name, int code)
2323
{
24-
PyObject *u = PyString_FromString(name);
24+
PyObject *u = PyUnicode_FromString(name);
2525
PyObject *v = PyInt_FromLong((long) code);
2626

2727
/* Don't bother checking for errors; they'll be caught at the end

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL