[pypy-commit] pypy py3k-fix-strategies: shortcut to bytes_w

pjenvey noreply at buildbot.pypy.org
Mon Apr 21 22:49:55 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k-fix-strategies
Changeset: r70835:9b05efa1e2d2
Date: 2014-04-21 13:25 -0700
http://bitbucket.org/pypy/pypy/changeset/9b05efa1e2d2/

Log:	shortcut to bytes_w

diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -1658,7 +1658,7 @@
         return self.space.wrapbytes(stringval)
 
     def unwrap(self, w_string):
-        return self.space.str_w(w_string)
+        return self.space.bytes_w(w_string)
 
     erase, unerase = rerased.new_erasing_pair("bytes")
     erase = staticmethod(erase)


More information about the pypy-commit mailing list