[pypy-commit] pypy default: random small cleanup in rstringio
alex_gaynor
noreply at buildbot.pypy.org
Sat Sep 24 03:07:12 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
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:
More information about the pypy-commit
mailing list