diff options
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6d693fe..c008bd6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1084,7 +1084,7 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj, s = PyString_AS_STRING(obj); len = PyString_GET_SIZE(obj); } - else if (PyBytes_Check(obj)) { + else if (PyByteArray_Check(obj)) { /* Python 2.x specific */ PyErr_Format(PyExc_TypeError, "decoding bytearray is not supported"); |
