[pypy-commit] pypy default: undo that, it doesn't translate.

alex_gaynor noreply at buildbot.pypy.org
Sat Sep 24 04:11:34 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r47573:203939c667ff
Date: 2011-09-23 22:10 -0400
http://bitbucket.org/pypy/pypy/changeset/203939c667ff/

Log:	undo that, it doesn't translate.

diff --git a/pypy/rlib/rStringIO.py b/pypy/rlib/rStringIO.py
--- a/pypy/rlib/rStringIO.py
+++ b/pypy/rlib/rStringIO.py
@@ -103,7 +103,8 @@
             endp = p + len(buffer)
             if len(self.bigbuffer) >= endp:
                 # semi-fast path: the write is entirely inside self.bigbuffer
-                self.bigbuffer[p:p + len(buffer)] = buffer
+                for i in range(len(buffer)):
+                    self.bigbuffer[p + i] = buffer[i]
                 self.pos = endp
                 return
             else:


More information about the pypy-commit mailing list