[pypy-commit] pypy default: seems str_w is sufficient here

bdkearns noreply at buildbot.pypy.org
Fri Apr 25 18:55:07 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r70974:044a3faede8c
Date: 2014-04-25 11:53 -0400
http://bitbucket.org/pypy/pypy/changeset/044a3faede8c/

Log:	seems str_w is sufficient here

diff --git a/pypy/module/_rawffi/array.py b/pypy/module/_rawffi/array.py
--- a/pypy/module/_rawffi/array.py
+++ b/pypy/module/_rawffi/array.py
@@ -193,7 +193,7 @@
 
     def setslice(self, space, w_slice, w_value):
         start, stop = self.decodeslice(space, w_slice)
-        value = space.bufferstr_w(w_value)
+        value = space.str_w(w_value)
         if start + len(value) != stop:
             raise OperationError(space.w_ValueError,
                                  space.wrap("cannot resize array"))


More information about the pypy-commit mailing list