diff options
author | Guido van Rossum <guido@python.org> | 2007-08-03 18:40:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-03 18:40:49 (GMT) |
commit | ad8d30092ccebad0f940fe0ed3ff25a18c25dddf (patch) | |
tree | 368f9ee7089ab4932a273b56e8e8de9bf502afab /Python | |
parent | 6afaeb757af0dbd8508a0f2352ade61e41bec84c (diff) | |
download | cpython-ad8d30092ccebad0f940fe0ed3ff25a18c25dddf.zip cpython-ad8d30092ccebad0f940fe0ed3ff25a18c25dddf.tar.gz cpython-ad8d30092ccebad0f940fe0ed3ff25a18c25dddf.tar.bz2 |
SF patch# 1766592 by Paul Colomiets.
Fix test_zipimport.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 25c768f..bb40b68 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2620,7 +2620,7 @@ imp_get_magic(PyObject *self, PyObject *noargs) 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 * |