Show More
@@ -624,7 +624,7 b' static PyObject *statfiles(PyObject *sel' | |||||
624 | pypath = PySequence_GetItem(names, i); |
|
624 | pypath = PySequence_GetItem(names, i); | |
625 | if (!pypath) |
|
625 | if (!pypath) | |
626 | goto bail; |
|
626 | goto bail; | |
627 |
path = Py |
|
627 | path = PyBytes_AsString(pypath); | |
628 | if (path == NULL) { |
|
628 | if (path == NULL) { | |
629 | Py_DECREF(pypath); |
|
629 | Py_DECREF(pypath); | |
630 | PyErr_SetString(PyExc_TypeError, "not a string"); |
|
630 | PyErr_SetString(PyExc_TypeError, "not a string"); |
General Comments 0
You need to be logged in to leave comments.
Login now