[pypy-commit] pypy py3k: return a unicode name on py3

pjenvey noreply at buildbot.pypy.org
Tue Sep 10 00:30:37 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r66885:8b3000150d65
Date: 2013-09-09 14:26 -0700
http://bitbucket.org/pypy/pypy/changeset/8b3000150d65/

Log:	return a unicode name on py3

diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -496,7 +496,7 @@
         name = w_self.name
         if name is None:
             name = '?'
-        return name
+        return name.decode('utf-8')
 
     def add_subclass(w_self, w_subclass):
         space = w_self.space


More information about the pypy-commit mailing list