[pypy-svn] pypy default: Fix translation.

alex_gaynor commits-noreply at bitbucket.org
Sat Jan 29 23:53:18 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41465:5288908719ba
Date: 2011-01-29 17:52 -0500
http://bitbucket.org/pypy/pypy/changeset/5288908719ba/

Log:	Fix translation.

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
@@ -97,6 +97,8 @@
             pos = self.pos
         elif mode == 2:
             pos = len(self.buf)
+
+        assert pos >= 0
         self.pos = pos
         return space.wrap(pos)
 


More information about the Pypy-commit mailing list