mirror of
https://github.com/python/cpython.git
synced 2025-07-17 08:15:19 +00:00
SF patch# 1766592 by Paul Colomiets.
Fix test_zipimport.
This commit is contained in:
parent
6afaeb757a
commit
ad8d30092c
4 changed files with 31 additions and 25 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue