[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-commit] pypy unicode-utf8: fix 74c350367634 for find_crlf
From:       mattip <pypy.commits () gmail ! com>
Date:       2018-12-24 19:53:26
Message-ID: 5c213936.1c69fb81.6be62.fb58 () mx ! google ! com
[Download RAW message or body]

Author: Matti Picus <matti.picus@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
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic