diff Python/import.c @ 46547:a51b329245b1

There is no reason for imp.get_magic() to return a mutable bytearray
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Thu, 24 Apr 2008 18:23:22 +0000
parents 36d828d27c36
children ea594306ea85
line wrap: on
line diff
--- a/Python/import.c	Thu Apr 24 02:43:56 2008 +0000
+++ b/Python/import.c	Thu Apr 24 18:23:22 2008 +0000
@@ -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 *