[pypy-commit] pypy py3k: make sure to use unicode keywords, else the translation breaks

antocuni noreply at buildbot.pypy.org
Tue Aug 14 16:12:12 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56728:aaea2b5be121
Date: 2012-08-14 14:54 +0200
http://bitbucket.org/pypy/pypy/changeset/aaea2b5be121/

Log:	make sure to use unicode keywords, else the translation breaks

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -951,7 +951,7 @@
                     break
                 w_value = self.popvalue()
                 w_key = self.popvalue()
-                key = self.space.str_w(w_key)
+                key = self.space.unicode_w(w_key)
                 keywords[n_keywords] = key
                 keywords_w[n_keywords] = w_value
         else:


More information about the pypy-commit mailing list