diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-06-29 10:14:58 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-06-29 10:14:58 (GMT) |
commit | 23db935bcf258657682e66464bf8512def8af830 (patch) | |
tree | 1ee4e96c8aba659a705a51e307de77a0f97e00fc /Lib/_pyio.py | |
parent | bda9c3eae3ad16e43145599ac6359bfdcaf1fd4a (diff) | |
download | cpython-23db935bcf258657682e66464bf8512def8af830.zip cpython-23db935bcf258657682e66464bf8512def8af830.tar.gz cpython-23db935bcf258657682e66464bf8512def8af830.tar.bz2 |
bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)
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 c91a647..f0d4f4e 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -2149,6 +2149,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() |