[pypy-commit] pypy py3k: use identifier_w to unwrap the keywords

antocuni noreply at buildbot.pypy.org
Fri Aug 31 10:23:13 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r57045:f5006eeaebdc
Date: 2012-08-31 10:15 +0200
http://bitbucket.org/pypy/pypy/changeset/f5006eeaebdc/

Log:	use identifier_w to unwrap the keywords

diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py
--- a/pypy/interpreter/argument.py
+++ b/pypy/interpreter/argument.py
@@ -475,7 +475,7 @@
     i = 0
     for w_key in keys_w:
         try:
-            key = space.unicode_w(w_key).encode('utf-8')
+            key = space.identifier_w(w_key)
         except OperationError, e:
             if e.match(space, space.w_TypeError):
                 raise OperationError(
@@ -780,7 +780,7 @@
                         except IndexError:
                             name = '?'
                         else:
-                            name = space.unicode_w(w_name).encode('utf-8')
+                            name = space.identifier_w(w_name)
                     break
         self.kwd_name = name
 


More information about the pypy-commit mailing list