]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that MozillaCookieJar works for curl's cookie files (GH-91852)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 Oct 2022 23:00:40 +0000 (16:00 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Oct 2022 23:00:40 +0000 (16:00 -0700)
MozillaCookieJar works for curl's cookies
(cherry picked from commit 0ea8b925d096629852d1045c2c53ff6ad63199cc)

Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
Doc/library/http.cookiejar.rst
Lib/http/cookiejar.py

index ba2fa018499c62bcc71ca919798ddfa18b317076..1ce24c676182164666e546ac66c716a3672a03aa 100644 (file)
@@ -320,8 +320,8 @@ writing.
 .. class:: MozillaCookieJar(filename, delayload=None, policy=None)
 
    A :class:`FileCookieJar` that can load from and save cookies to disk in the
-   Mozilla ``cookies.txt`` file format (which is also used by the Lynx and Netscape
-   browsers).
+   Mozilla ``cookies.txt`` file format (which is also used by curl and the Lynx
+   and Netscape browsers).
 
    .. note::
 
index eaa76c26b9c591a6a5f5ea64cd5348e430bd7fad..0380d9f1096c0800b1cb34d3300cdf83db2027fb 100644 (file)
@@ -1990,7 +1990,7 @@ class MozillaCookieJar(FileCookieJar):
 
     This class differs from CookieJar only in the format it uses to save and
     load cookies to and from a file.  This class uses the Mozilla/Netscape
-    `cookies.txt' format.  lynx uses this file format, too.
+    `cookies.txt' format.  curl and lynx use this file format, too.
 
     Don't expect cookies saved while the browser is running to be noticed by
     the browser (in fact, Mozilla on unix will overwrite your saved cookies if