From: Alexandre Vassalotti Date: Fri, 28 Dec 2007 01:24:22 +0000 (+0000) Subject: Fix the reset() method of IncrementalNewlineDecoder to X-Git-Tag: v3.0a3~278 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3d7fe0dbe8ed193ec34615d69e4dee485855b45;p=thirdparty%2FPython%2Fcpython.git Fix the reset() method of IncrementalNewlineDecoder to also reset self.seennl. --- diff --git a/Lib/io.py b/Lib/io.py index 05ea94bd426b..2a5348d17207 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()