[pypy-svn] r79285 - pypy/branch/fast-forward/pypy/module/_io
afa at codespeak.net
afa at codespeak.net
Fri Nov 19 19:44:10 CET 2010
Author: afa
Date: Fri Nov 19 19:44:08 2010
New Revision: 79285
Modified:
pypy/branch/fast-forward/pypy/module/_io/interp_textio.py
Log:
Translation fix
Modified: pypy/branch/fast-forward/pypy/module/_io/interp_textio.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_io/interp_textio.py (original)
+++ pypy/branch/fast-forward/pypy/module/_io/interp_textio.py Fri Nov 19 19:44:08 2010
@@ -354,8 +354,11 @@
size = available
if self.decoded_chars_used > 0 or size < available:
- chars = self.decoded_chars[self.decoded_chars_used:
- self.decoded_chars_used + size]
+ start = self.decoded_chars_used
+ end = self.decoded_chars_used + size
+ assert start >= 0
+ assert end >= 0
+ chars = self.decoded_chars[start:end]
else:
chars = self.decoded_chars
More information about the Pypy-commit
mailing list