[Python-checkins] cpython (3.2): #15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
ezio.melotti
python-checkins at python.org
Fri Sep 21 15:31:49 CEST 2012
http://hg.python.org/cpython/rev/e582ad1aee62
changeset: 79084:e582ad1aee62
branch: 3.2
parent: 79081:78aba41a8105
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Sep 21 16:30:22 2012 +0300
summary:
#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
files:
Lib/http/cookiejar.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1825,7 +1825,7 @@
class LWPCookieJar(FileCookieJar):
"""
- The LWPCookieJar saves a sequence of"Set-Cookie3" lines.
+ The LWPCookieJar saves a sequence of "Set-Cookie3" lines.
"Set-Cookie3" is the format used by the libwww-perl libary, not known
to be compatible with any browser, but which is easy to read and
doesn't lose information about RFC 2965 cookies.
@@ -1837,7 +1837,7 @@
"""
def as_lwp_str(self, ignore_discard=True, ignore_expires=True):
- """Return cookies as a string of "\n"-separated "Set-Cookie3" headers.
+ """Return cookies as a string of "\\n"-separated "Set-Cookie3" headers.
ignore_discard and ignore_expires: see docstring for FileCookieJar.save
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list