diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-21 13:30:22 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-21 13:30:22 (GMT) |
commit | 0847db7c01cb07011d3ab7a4de43cc90417637af (patch) | |
tree | ea6b60467f42ec8f040c9430ae46c2cdf8e4745b | |
parent | 98b1c446d533f432352fa1970a14f5bf5dab68cb (diff) | |
download | cpython-0847db7c01cb07011d3ab7a4de43cc90417637af.zip cpython-0847db7c01cb07011d3ab7a4de43cc90417637af.tar.gz cpython-0847db7c01cb07011d3ab7a4de43cc90417637af.tar.bz2 |
#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
-rw-r--r-- | Lib/http/cookiejar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index a516d73..b6cfc35 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -1825,7 +1825,7 @@ def lwp_cookie_str(cookie): 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 @@ class LWPCookieJar(FileCookieJar): """ 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 |