Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58388:21c70617155a
Date: 2012-10-23 22:09 +0200
http://bitbucket.org/pypy/pypy/changeset/21c70617155a/
Log: Fix translation
diff --git a/pypy/objspace/std/stringtype.py b/pypy/objspace/std/stringtype.py
--- a/pypy/objspace/std/stringtype.py
+++ b/pypy/objspace/std/stringtype.py
@@ -313,8 +313,7 @@
w_bytes_method = space.lookup(w_source, "__bytes__")
if w_bytes_method:
w_bytes = space.call_function(w_bytes_method, w_source)
- # XXX a bit inefficient
- return space.bytes_w(w_bytes)
+ w_source = w_bytes
# sequence of bytes
data = []
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit