commit | ad8d30092ccebad0f940fe0ed3ff25a18c25dddf | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 03 18:40:49 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 03 18:40:49 2007 +0000 |
tree | 368f9ee7089ab4932a273b56e8e8de9bf502afab | |
parent | 6afaeb757af0dbd8508a0f2352ade61e41bec84c [diff] |
SF patch# 1766592 by Paul Colomiets. Fix test_zipimport.
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 @@ 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 *