diff --git a/Lib/io.py b/Lib/io.py index 05ea94bd426..2a5348d1720 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -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()