Skip to content

Commit 013b1ca

Browse files
guocimerwok
andauthored
Update Doc/library/io.rst
Co-authored-by: Éric <merwok@netwok.org>
1 parent 1a51237 commit 013b1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ Text I/O
11241124
>>> import codecs
11251125
>>> import io
11261126
>>> idec = codecs.getincrementaldecoder("utf-8")()
1127-
>>> inld = io.IncrementalNewlineDecoder(idec, True)
1127+
>>> inld = io.IncrementalNewlineDecoder(idec, translate=True)
11281128
>>> inld.decode(b'1\r')
11291129
'1'
11301130
>>> inld.decode(b'\n2\n')

0 commit comments

Comments
 (0)