Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 42428:81ade0144247
SF patch# 1766592 by Paul Colomiets.
Fix test_zipimport.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 03 Aug 2007 18:40:49 +0000 |
| parents | 5e66bb69c1e3 |
| children | 0fcc18aba385 |
line wrap: on
line diff
--- a/Python/import.c Fri Aug 03 17:06:41 2007 +0000 +++ b/Python/import.c Fri Aug 03 18:40:49 2007 +0000 @@ -2620,7 +2620,7 @@ buf[2] = (char) ((pyc_magic >> 16) & 0xff); buf[3] = (char) ((pyc_magic >> 24) & 0xff); - return PyString_FromStringAndSize(buf, 4); + return PyBytes_FromStringAndSize(buf, 4); } static PyObject *
