[pypy-commit] pypy py3k: the usual wrap/wrapbytes confusion
antocuni
noreply at buildbot.pypy.org
Mon Apr 16 18:07:58 CEST 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54433:aaf9d714037c
Date: 2012-04-16 17:32 +0200
http://bitbucket.org/pypy/pypy/changeset/aaf9d714037c/
Log: the usual wrap/wrapbytes confusion
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
@@ -533,7 +533,7 @@
cbuf = self._charbuf_start()
s = rffi.charpsize2str(cbuf, self.len * mytype.bytes)
self._charbuf_stop()
- return self.space.wrap(s)
+ return self.space.wrapbytes(s)
def array_tostring__Array(space, self):
space.warn("tostring() is deprecated. Use tobytes() instead.",
More information about the pypy-commit
mailing list