commit | 9c4756ea265b5ebd71c9ae59f3673c7cecb6f060 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Mon May 26 13:22:05 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Mon May 26 13:22:05 2008 +0000 |
tree | 642b21e774a9cb2d949e10ce65e7d10326c70138 | |
parent | 96d02f3c1e145821cd5ce8817d4263e7d8d57e4a [diff] [blame] |
Renamed PyBytes to PyByteArray
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 0053201..852d093 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c
@@ -866,8 +866,8 @@ if (PyString_Check(str)) ptr = PyString_AS_STRING(str); - else if (PyBytes_Check(str)) - ptr = PyBytes_AS_STRING(str); + else if (PyByteArray_Check(str)) + ptr = PyByteArray_AS_STRING(str); else { PyErr_Format(PyExc_TypeError, "read() did not return a bytes object (type=%.400s)",