Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,

you have to convert your bytearray filenames to bytes
This commit is contained in:
Victor Stinner 2010-04-22 12:08:36 +00:00
parent c303c12160
commit dcb2403022
8 changed files with 104 additions and 151 deletions

View file

@ -1624,7 +1624,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr)
Py_DECREF(*(PyObject**)addr);
return 1;
}
if (PyBytes_Check(arg) || PyByteArray_Check(arg)) {
if (PyBytes_Check(arg)) {
output = arg;
Py_INCREF(output);
}