mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Fix the reset() method of IncrementalNewlineDecoder to
also reset self.seennl.
This commit is contained in:
parent
5fb7c2ad0b
commit
c3d7fe0dbe
1 changed files with 1 additions and 0 deletions
|
@ -1116,6 +1116,7 @@ class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
|
|||
self.decoder.setstate((buf, flag))
|
||||
|
||||
def reset(self):
|
||||
self.seennl = 0
|
||||
self.buffer = b''
|
||||
self.decoder.reset()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue