[pypy-svn] r77485 - pypy/branch/fast-forward/pypy/objspace/std

afa at codespeak.net afa at codespeak.net
Thu Sep 30 11:31:19 CEST 2010


Author: afa
Date: Thu Sep 30 11:31:17 2010
New Revision: 77485

Modified:
   pypy/branch/fast-forward/pypy/objspace/std/bytearrayobject.py
Log:
Translation fixes


Modified: pypy/branch/fast-forward/pypy/objspace/std/bytearrayobject.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/bytearrayobject.py	(original)
+++ pypy/branch/fast-forward/pypy/objspace/std/bytearrayobject.py	Thu Sep 30 11:31:17 2010
@@ -1,4 +1,4 @@
-from pypy.interpreter.error import OperationError
+from pypy.interpreter.error import OperationError, operationerrfmt
 from pypy.objspace.std.model import registerimplementation, W_Object
 from pypy.objspace.std.register_all import register_all
 from pypy.objspace.std.inttype import wrapint
@@ -241,7 +241,7 @@
     for i in range(len(list_w)):
         if data and i != 0:
             newdata.extend(data)
-        newdata.extend(c for c in space.str_w(list_w[i]))
+        newdata.extend([c for c in space.str_w(list_w[i])])
     return W_BytearrayObject(newdata)
 
 # These methods could just delegate to the string implementation,



More information about the Pypy-commit mailing list