Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3d7fe0

Browse files
committed
Fix the reset() method of IncrementalNewlineDecoder to
also reset self.seennl.
1 parent 5fb7c2a commit c3d7fe0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ def setstate(self, state):
11161116
self.decoder.setstate((buf, flag))
11171117

11181118
def reset(self):
1119+
self.seennl = 0
11191120
self.buffer = b''
11201121
self.decoder.reset()
11211122

0 commit comments

Comments
 (0)