[pypy-commit] pypy py3.5: fix translation

rlamy pypy.commits at gmail.com
Sat May 13 10:00:19 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r91277:2157c3d029f1
Date: 2017-05-13 14:59 +0100
http://bitbucket.org/pypy/pypy/changeset/2157c3d029f1/

Log:	fix translation

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -79,7 +79,7 @@
 
     def getname(self, space):
         try:
-            return space.text_w(space.getattr(self, space.newtext('__name__')))
+            return space.unicode_w(space.getattr(self, space.newtext('__name__')))
         except OperationError as e:
             if e.match(space, space.w_TypeError) or e.match(space, space.w_AttributeError):
                 return u'?'


More information about the pypy-commit mailing list