[pypy-svn] r58802 - pypy/branch/2.5-merge/pypy/module/operator

pedronis at codespeak.net pedronis at codespeak.net
Wed Oct 8 13:40:19 CEST 2008


Author: pedronis
Date: Wed Oct  8 13:40:19 2008
New Revision: 58802

Modified:
   pypy/branch/2.5-merge/pypy/module/operator/interp_operator.py
Log:
translation fix



Modified: pypy/branch/2.5-merge/pypy/module/operator/interp_operator.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/module/operator/interp_operator.py	(original)
+++ pypy/branch/2.5-merge/pypy/module/operator/interp_operator.py	Wed Oct  8 13:40:19 2008
@@ -229,12 +229,14 @@
     'irepeat(a, b) -- Same as a *= b, for a and b sequences.'
     if space.findattr(w_obj1, space.wrap('__getitem__')) is None:
         # first arg has to be a sequence
-        raise OperationError(space.w_TypeError, "non-sequence object can't be repeated")
+        raise OperationError(space.w_TypeError,
+                           space.wrap("non-sequence object can't be repeated"))
 
     if not (space.is_true(space.isinstance(w_obj2, space.w_int)) or \
             space.is_true(space.isinstance(w_obj2, space.w_long))):
         # second arg has to be int/long
-        raise OperationError(space.w_TypeError, 'an integer is required')
+        raise OperationError(space.w_TypeError,
+                             space.wrap('an integer is required'))
 
     return space.inplace_mul(w_obj1, w_obj2)
 



More information about the Pypy-commit mailing list