[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-commit] pypy py3k: fix translation
From:       rlamy <pypy.commits () gmail ! com>
Date:       2016-06-29 20:00:55
Message-ID: 577428f7.81eac20a.de1f1.fffff1b1 () mx ! google ! com
[Download RAW message or body]

Author: Ronan Lamy <ronan.lamy@gmail.com>
Branch: py3k
Changeset: r85462:306f1a7ca98e
Date: 2016-06-29 21:00 +0100
http://bitbucket.org/pypy/pypy/changeset/306f1a7ca98e/

Log:	fix translation

diff --git a/pypy/objspace/std/stringmethods.py b/pypy/objspace/std/stringmethods.py
--- a/pypy/objspace/std/stringmethods.py
+++ b/pypy/objspace/std/stringmethods.py
@@ -36,7 +36,7 @@
         in frm is mapped to the byte at the same position in to.
         The bytes objects frm and to must be of the same length.
         """
-        from pypy.objspace.std.bytesobject import makebytesdata_w, wrapstr
+        from pypy.objspace.std.bytesobject import makebytesdata_w
 
         base_table = [chr(i) for i in range(256)]
         list_from = makebytesdata_w(space, w_from)
@@ -51,7 +51,7 @@
             char_to = list_to[i]
             base_table[pos_from] = char_to
 
-        return wrapstr(space, ''.join(base_table))
+        return space.newbytes(''.join(base_table))
 
     def _multi_chr(self, c):
         return c
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic