Author: Ronan Lamy <[email protected]>
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
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit