From ad8d30092ccebad0f940fe0ed3ff25a18c25dddf Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 3 Aug 2007 18:40:49 +0000 Subject: SF patch# 1766592 by Paul Colomiets. Fix test_zipimport. --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/import.c b/Python/import.c index 25c768fea4..bb40b685a5 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 * -- cgit v1.2.1