[pypy-commit] pypy unicode-utf8: fix 74c350367634 for find_crlf

mattip pypy.commits at gmail.com
Mon Dec 24 14:53:26 EST 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8
Changeset: r95530:3fb6c618af46
Date: 2018-12-24 21:37 +0200
http://bitbucket.org/pypy/pypy/changeset/3fb6c618af46/

Log:	fix 74c350367634 for find_crlf

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
@@ -419,6 +419,7 @@
                 except StopIteration:
                     # This is the tricky case: we found a \r right at the end
                     self.pos -= 1
+                    self.upos -= 1
                     return False
         return False
 


More information about the pypy-commit mailing list