#15796: Fix \n in readline docstring. Patch by Serhiy Storchaka.
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 18 Sep 2012 04:20:18 +0000 (07:20 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 18 Sep 2012 04:20:18 +0000 (07:20 +0300)
Modules/_io/_iomodule.c
Modules/_io/iobase.c
Modules/_io/textio.c

index 59876791d80b4fd607af9d79710af3861839ee94..e18aec6686145dd7384a056a5d301bd768320df1 100644 (file)
@@ -264,7 +264,7 @@ PyDoc_STRVAR(open_doc,
 "\n"
 "* On output, if newline is None, any '\\n' characters written are\n"
 "  translated to the system default line separator, os.linesep. If\n"
-"  newline is '' or '\n', no translation takes place. If newline is any\n"
+"  newline is '' or '\\n', no translation takes place. If newline is any\n"
 "  of the other legal values, any '\\n' characters written are translated\n"
 "  to the given string.\n"
 "\n"
index 2bba1bfd58fefd98026180e14c46ed63b376e1fe..ba861467904e2f25972071166e3888b2457efcf6 100644 (file)
@@ -451,7 +451,7 @@ PyDoc_STRVAR(iobase_readline_doc,
     "\n"
     "If limit is specified, at most limit bytes will be read.\n"
     "\n"
-    "The line terminator is always b'\n' for binary files; for text\n"
+    "The line terminator is always b'\\n' for binary files; for text\n"
     "files, the newlines argument to open can be used to select the line\n"
     "terminator(s) recognized.\n");
 
index 490484254b3b31033582ea761856c2a74bea2c7b..2fbb8f3052350ad00a2b0e1cf552a19c8f9df2a1 100644 (file)
@@ -635,7 +635,7 @@ PyDoc_STRVAR(textiowrapper_doc,
     "\n"
     "* On output, if newline is None, any '\\n' characters written are\n"
     "  translated to the system default line separator, os.linesep. If\n"
-    "  newline is '' or '\n', no translation takes place. If newline is any\n"
+    "  newline is '' or '\\n', no translation takes place. If newline is any\n"
     "  of the other legal values, any '\\n' characters written are translated\n"
     "  to the given string.\n"
     "\n"