summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/io.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 05ea94b..2a5348d 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()