[pypy-commit] pypy py3k: imp.get_magic() returns bytes
amauryfa
noreply at buildbot.pypy.org
Sun Nov 6 20:59:22 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r48845:90b2ca3bd7d6
Date: 2011-10-26 23:15 +0200
http://bitbucket.org/pypy/pypy/changeset/90b2ca3bd7d6/
Log: imp.get_magic() returns bytes
diff --git a/pypy/module/imp/interp_imp.py b/pypy/module/imp/interp_imp.py
--- a/pypy/module/imp/interp_imp.py
+++ b/pypy/module/imp/interp_imp.py
@@ -29,7 +29,7 @@
c = x & 0xff
x >>= 8
d = x & 0xff
- return space.wrap(chr(a) + chr(b) + chr(c) + chr(d))
+ return space.wrapbytes(chr(a) + chr(b) + chr(c) + chr(d))
def get_file(space, w_file, filename, filemode):
if w_file is None or space.is_w(w_file, space.w_None):
More information about the pypy-commit
mailing list