commit | dcb2403022520028a633143602359a30080ed257 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Apr 22 12:08:36 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Apr 22 12:08:36 2010 +0000 |
tree | 63600ee89e86589546a6e38a65cd453c474a5109 | |
parent | c303c12160090f926d9ffc582a85b82803785e4d [diff] |
Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore, you have to convert your bytearray filenames to bytes
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a409b22..6b04afc 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1624,7 +1624,7 @@ Py_DECREF(*(PyObject**)addr); return 1; } - if (PyBytes_Check(arg) || PyByteArray_Check(arg)) { + if (PyBytes_Check(arg)) { output = arg; Py_INCREF(output); }