[pypy-commit] pypy py3k: fix bytes result

pjenvey noreply at buildbot.pypy.org
Sat Jul 19 20:36:24 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r72473:e2fd970b748f
Date: 2014-07-18 16:48 -0700
http://bitbucket.org/pypy/pypy/changeset/e2fd970b748f/

Log:	fix bytes result

diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -244,7 +244,7 @@
         """
         size = self.len
         if size == 0:
-            return space.wrap('')
+            return space.wrapbytes('')
         cbuf = self._charbuf_start()
         s = rffi.charpsize2str(cbuf, size * self.itemsize)
         self._charbuf_stop()


More information about the pypy-commit mailing list