From c3d7fe0dbe8ed193ec34615d69e4dee485855b45 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Fri, 28 Dec 2007 01:24:22 +0000 Subject: Fix the reset() method of IncrementalNewlineDecoder to also reset self.seennl. --- Lib/io.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v0.12