[pypy-svn] r74008 - pypy/trunk/pypy/interpreter

afa at codespeak.net afa at codespeak.net
Fri Apr 23 13:26:05 CEST 2010


Author: afa
Date: Fri Apr 23 13:26:03 2010
New Revision: 74008

Modified:
   pypy/trunk/pypy/interpreter/baseobjspace.py
Log:
Fix translation: inside ObjSpace, the space is named 'self'...


Modified: pypy/trunk/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/trunk/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/trunk/pypy/interpreter/baseobjspace.py	Fri Apr 23 13:26:03 2010
@@ -717,8 +717,8 @@
                     raise
                 break  # done
             if expected_length != -1 and len(items) == expected_length:
-                raise OperationError(space.w_ValueError,
-                                     space.wrap("too many values to unpack"))
+                raise OperationError(self.w_ValueError,
+                                     self.wrap("too many values to unpack"))
             items.append(w_item)
         if expected_length != -1 and len(items) < expected_length:
             i = len(items)
@@ -726,8 +726,8 @@
                 plural = ""
             else:
                 plural = "s"
-            raise OperationError(space.w_ValueError,
-                      space.wrap("need more than %d value%s to unpack" %
+            raise OperationError(self.w_ValueError,
+                      self.wrap("need more than %d value%s to unpack" %
                                  (i, plural)))
         return items
 



More information about the Pypy-commit mailing list