Author: Matti Picus <[email protected]>
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
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to