diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-06-29 14:07:13 -0600 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-06-29 23:07:13 +0300 |
commit | 0464de0f9a226cfa32b803e0326c12b2432aba26 (patch) | |
tree | d4c456790417ad6aeed6f5fd732546d3d3dbc001 /Lib/_pyio.py | |
parent | 11ba050986b96701f72f1356d22adde8c7dbf211 (diff) | |
download | cpython-git-0464de0f9a226cfa32b803e0326c12b2432aba26.tar.gz |
[2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8013)
(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r-- | Lib/_pyio.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py index f022a4e88b..98c2d58d0d 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -1619,6 +1619,7 @@ class TextIOWrapper(TextIOBase): self.buffer.write(b) if self._line_buffering and (haslf or "\r" in s): self.flush() + self._set_decoded_chars('') self._snapshot = None if self._decoder: self._decoder.reset() |