[pypy-commit] pypy space-newtext: here we process bytes

arigo pypy.commits at gmail.com
Wed Feb 15 04:06:49 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: space-newtext
Changeset: r90140:31f7ee8dcadc
Date: 2017-02-15 09:01 +0100
http://bitbucket.org/pypy/pypy/changeset/31f7ee8dcadc/

Log:	here we process bytes

diff --git a/pypy/module/marshal/interp_marshal.py b/pypy/module/marshal/interp_marshal.py
--- a/pypy/module/marshal/interp_marshal.py
+++ b/pypy/module/marshal/interp_marshal.py
@@ -103,7 +103,7 @@
     def read(self, n):
         space = self.space
         w_ret = space.call_function(self.func, space.newint(n))
-        ret = space.text_w(w_ret)
+        ret = space.bytes_w(w_ret)
         if len(ret) != n:
             self.raise_eof()
         return ret


More information about the pypy-commit mailing list