[pypy-commit] pypy default: fix translation

cfbolz pypy.commits at gmail.com
Thu Sep 12 10:53:53 EDT 2019


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: 
Changeset: r97460:ba849ddc5eaf
Date: 2019-09-12 15:50 +0200
http://bitbucket.org/pypy/pypy/changeset/ba849ddc5eaf/

Log:	fix translation

diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -433,7 +433,10 @@
                 end = len(self.text)
             else:
                 end = self.pos + limit
-            pos = self.text.find(marker, self.pos, end)
+            pos = self.pos
+            assert pos >= 0
+            assert end >= 0
+            pos = self.text.find(marker, pos, end)
             if pos >= 0:
                 self.pos = self.upos = pos + 1
                 return True


More information about the pypy-commit mailing list