[pypy-svn] pypy default: Revert 76dc3cf3b959.

arigo commits-noreply at bitbucket.org
Mon Jan 31 11:26:35 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41493:9afa8f0ffe7a
Date: 2011-01-31 11:26 +0100
http://bitbucket.org/pypy/pypy/changeset/9afa8f0ffe7a/

Log:	Revert 76dc3cf3b959.

diff --git a/pypy/module/_io/interp_stringio.py b/pypy/module/_io/interp_stringio.py
--- a/pypy/module/_io/interp_stringio.py
+++ b/pypy/module/_io/interp_stringio.py
@@ -31,7 +31,6 @@
 
     def resize_buffer(self, newlength):
         if len(self.buf) > newlength:
-            assert newlength >= 0
             self.buf = self.buf[:newlength]
         if len(self.buf) < newlength:
             self.buf.extend([u'\0'] * (newlength - len(self.buf)))


More information about the Pypy-commit mailing list