mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Use unicode for the errno.errorcode names
This commit is contained in:
parent
9af3ae42f8
commit
0d94203cc1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue