summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2007-12-28 01:24:22 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2007-12-28 01:24:22 (GMT)
commitc3d7fe0dbe8ed193ec34615d69e4dee485855b45 (patch)
tree4d634d65e0397829efe09eab4a373564d0067e4f /Lib
parent5fb7c2ad0b59b670898c8b1622ddc37331b5cb9e (diff)
downloadcpython-c3d7fe0dbe8ed193ec34615d69e4dee485855b45.zip
cpython-c3d7fe0dbe8ed193ec34615d69e4dee485855b45.tar.gz
cpython-c3d7fe0dbe8ed193ec34615d69e4dee485855b45.tar.bz2
Fix the reset() method of IncrementalNewlineDecoder to
also reset self.seennl.
Diffstat (limited to 'Lib')
-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()