#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 21 Sep 2012 13:30:22 +0000 (16:30 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 21 Sep 2012 13:30:22 +0000 (16:30 +0300)
Lib/http/cookiejar.py

index a516d735b8a774c2cde5ac3fe85758d347fc4539..b6cfc355c9634144b2b14ee081792e45b8db9a3f 100644 (file)
@@ -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