Author: marky1991
Branch: py3.3
Changeset: r81706:929b79827d35
Date: 2016-01-02 03:32 -0500
http://bitbucket.org/pypy/pypy/changeset/929b79827d35/

Log:    Turn qualname into a unicode object in the ast phase. (Fixes
        repr/str of class objects with non-ascii names)

diff --git a/pypy/interpreter/astcompiler/codegen.py 
b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -1381,7 +1381,7 @@
         # ... and store it as __module__
         self.name_op("__module__", ast.Store)
         # store the qualname
-        w_qualname = self.space.wrap(self.qualname)
+        w_qualname = self.space.wrap(self.qualname.decode("utf-8"))
         self.load_const(w_qualname)
         self.name_op("__qualname__", ast.Store)
         # compile the body proper
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to