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

Skip to content

Commit 6d10b4d

Browse files
committed
#15796: merge with 3.2.
2 parents 4a5fae1 + 16d2b47 commit 6d10b4d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_io/_iomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ PyDoc_STRVAR(open_doc,
185185
"\n"
186186
"* On output, if newline is None, any '\\n' characters written are\n"
187187
" translated to the system default line separator, os.linesep. If\n"
188-
" newline is '' or '\n', no translation takes place. If newline is any\n"
188+
" newline is '' or '\\n', no translation takes place. If newline is any\n"
189189
" of the other legal values, any '\\n' characters written are translated\n"
190190
" to the given string.\n"
191191
"\n"

Modules/_io/iobase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ PyDoc_STRVAR(iobase_readline_doc,
442442
"\n"
443443
"If limit is specified, at most limit bytes will be read.\n"
444444
"\n"
445-
"The line terminator is always b'\n' for binary files; for text\n"
445+
"The line terminator is always b'\\n' for binary files; for text\n"
446446
"files, the newlines argument to open can be used to select the line\n"
447447
"terminator(s) recognized.\n");
448448

Modules/_io/textio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ PyDoc_STRVAR(textiowrapper_doc,
648648
"\n"
649649
"* On output, if newline is None, any '\\n' characters written are\n"
650650
" translated to the system default line separator, os.linesep. If\n"
651-
" newline is '' or '\n', no translation takes place. If newline is any\n"
651+
" newline is '' or '\\n', no translation takes place. If newline is any\n"
652652
" of the other legal values, any '\\n' characters written are translated\n"
653653
" to the given string.\n"
654654
"\n"

0 commit comments

Comments
 (0)