diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-28 01:24:22 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-12-28 01:24:22 (GMT) |
commit | c3d7fe0dbe8ed193ec34615d69e4dee485855b45 (patch) | |
tree | 4d634d65e0397829efe09eab4a373564d0067e4f /Lib/io.py | |
parent | 5fb7c2ad0b59b670898c8b1622ddc37331b5cb9e (diff) | |
download | cpython-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/io.py')
-rw-r--r-- | Lib/io.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() |