Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r47572:bdec23aaa56f
Date: 2011-09-23 21:06 -0400
http://bitbucket.org/pypy/pypy/changeset/bdec23aaa56f/
Log: random small cleanup in rstringio
diff --git a/pypy/rlib/rStringIO.py b/pypy/rlib/rStringIO.py
--- a/pypy/rlib/rStringIO.py
+++ b/pypy/rlib/rStringIO.py
@@ -103,8 +103,7 @@
endp = p + len(buffer)
if len(self.bigbuffer) >= endp:
# semi-fast path: the write is entirely inside self.bigbuffer
- for i in range(len(buffer)):
- self.bigbuffer[p+i] = buffer[i]
+ self.bigbuffer[p:p + len(buffer)] = buffer
self.pos = endp
return
else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit