[Python-3000-checkins] r62482 - python/branches/py3k/Python/import.c
amaury.forgeotdarc
python-3000-checkins at python.org
Thu Apr 24 20:23:50 CEST 2008
Author: amaury.forgeotdarc
Date: Thu Apr 24 20:23:22 2008
New Revision: 62482
Log:
There is no reason for imp.get_magic() to return a mutable bytearray
Modified:
python/branches/py3k/Python/import.c
Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c (original)
+++ python/branches/py3k/Python/import.c Thu Apr 24 20:23:22 2008
@@ -2686,7 +2686,7 @@
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 *
More information about the Python-3000-checkins
mailing list