[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-svn] r8723 - pypy/dist/pypy/interpreter
From:       arigo () codespeak ! net
Date:       2005-01-29 15:46:43
Message-ID: 20050129154643.A78E827B66 () code1 ! codespeak ! net
[Download RAW message or body]

Author: arigo
Date: Sat Jan 29 16:46:43 2005
New Revision: 8723

Modified:
   pypy/dist/pypy/interpreter/pyopcode.py
Log:
missing space.str_w().


Modified: pypy/dist/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyopcode.py	(original)
+++ pypy/dist/pypy/interpreter/pyopcode.py	Sat Jan 29 16:46:43 2005
@@ -72,8 +72,8 @@
         return self.code.co_consts_w[index]
 
     def getname_w(self, index):
-        varname = self.code.co_names_w[index]
-        return varname
+        w_varname = self.code.co_names_w[index]
+        return w_varname
 
 
     ################################################################
@@ -435,7 +435,7 @@
             # catch KeyErrors and turn them into NameErrors
             if not e.match(f.space, f.space.w_KeyError):
                 raise
-            message = "name '%s' is not defined" % varname
+            message = "name '%s' is not defined" % f.space.str_w(w_varname)
             raise OperationError(f.space.w_NameError, f.space.wrap(message))
 
     def UNPACK_SEQUENCE(f, itemcount):

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic