summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-22 12:08:36 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-22 12:08:36 (GMT)
commitdcb2403022520028a633143602359a30080ed257 (patch)
tree63600ee89e86589546a6e38a65cd453c474a5109 /Objects
parentc303c12160090f926d9ffc582a85b82803785e4d (diff)
downloadcpython-dcb2403022520028a633143602359a30080ed257.zip
cpython-dcb2403022520028a633143602359a30080ed257.tar.gz
cpython-dcb2403022520028a633143602359a30080ed257.tar.bz2
Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,
you have to convert your bytearray filenames to bytes
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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);
}