summaryrefslogtreecommitdiff
path: root/Lib/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 05ea94bd42..2a5348d172 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()