commit | eabebbb54c2604fd8d08e8019ea1be634aed8c2f | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Fri Jun 29 03:34:34 2018 -0700 |
committer | GitHub <noreply@github.com> | Fri Jun 29 03:34:34 2018 -0700 |
tree | 753a4129f0ff70097c60b461f916f230352d747b | |
parent | d0b442803ad4ba66b0bdb3cf183179d4c9a56f06 [diff] [blame] |
bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918) (cherry picked from commit 23db935bcf258657682e66464bf8512def8af830) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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 @@ 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()