mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
There is no reason for imp.get_magic() to return a mutable bytearray
This commit is contained in:
parent
be5229ec04
commit
ae0b088f6c
1 changed files with 1 additions and 1 deletions
|
@ -2686,7 +2686,7 @@ imp_get_magic(PyObject *self, PyObject *noargs)
|
|||
buf[2] = (char) ((pyc_magic >> 16) & 0xff);
|
||||
buf[3] = (char) ((pyc_magic >> 24) & 0xff);
|
||||
|
||||
return PyBytes_FromStringAndSize(buf, 4);
|
||||
return PyString_FromStringAndSize(buf, 4);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue