Mercurial > cpython-lru_cache-weakref
diff Objects/longobject.c @ 47300:96b34263e448
Renamed PyBytes to PyByteArray
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 26 May 2008 13:22:05 +0000 |
| parents | beb7abcd6c01 |
| children | 23ab586c427a |
line wrap: on
line diff
--- a/Objects/longobject.c Mon May 26 13:16:12 2008 +0000 +++ b/Objects/longobject.c Mon May 26 13:22:05 2008 +0000 @@ -3518,13 +3518,13 @@ return PyLong_FromUnicode(PyUnicode_AS_UNICODE(x), PyUnicode_GET_SIZE(x), base); - else if (PyBytes_Check(x) || PyString_Check(x)) { + else if (PyByteArray_Check(x) || PyString_Check(x)) { /* Since PyLong_FromString doesn't have a length parameter, * check here for possible NULs in the string. */ char *string; int size = Py_SIZE(x); - if (PyBytes_Check(x)) - string = PyBytes_AS_STRING(x); + if (PyByteArray_Check(x)) + string = PyByteArray_AS_STRING(x); else string = PyString_AS_STRING(x); if (strlen(string) != size) {
