Commit c3d7fe0d authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Fix the reset() method of IncrementalNewlineDecoder to

also reset self.seennl.
parent 5fb7c2ad
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment