Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r48185:d0b350aec8bc
Date: 2011-10-18 08:16 +0200
http://bitbucket.org/pypy/pypy/changeset/d0b350aec8bc/

Log:    Translation fix

diff --git a/pypy/module/__builtin__/operation.py 
b/pypy/module/__builtin__/operation.py
--- a/pypy/module/__builtin__/operation.py
+++ b/pypy/module/__builtin__/operation.py
@@ -38,7 +38,7 @@
     # Note that if w_name is already a string (or a subclass of str),
     # it must be returned unmodified (and not e.g. unwrapped-rewrapped).
     if not space.is_w(space.type(w_name), space.w_text):
-        name = space.text_w(w_name)   # typecheck
+        name = space.str_w(w_name)    # typecheck
         w_name = space.wrap(name)     # rewrap as a real string
     return w_name
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to