Commit 7689ae5f authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

There is no reason for imp.get_magic() to return a mutable bytearray

parent 7e9f0700
......@@ -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 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment