]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the reset() method of IncrementalNewlineDecoder to
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 28 Dec 2007 01:24:22 +0000 (01:24 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 28 Dec 2007 01:24:22 +0000 (01:24 +0000)
also reset self.seennl.

Lib/io.py

index 05ea94bd426b322e050eedf08e89a42187dc31a2..2a5348d172076caa4474a3dbe456ceea3ce436cc 100644 (file)
--- 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()