[Python-checkins] Document that MozillaCookieJar works for curl's cookie files (GH-91852)

miss-islington webhook-mailer at python.org
Mon Oct 3 19:00:46 EDT 2022


https://github.com/python/cpython/commit/f8a3c4cb83ec277d6a4ee1392165960d3bd56426
commit: f8a3c4cb83ec277d6a4ee1392165960d3bd56426
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-03T16:00:40-07:00
summary:

Document that MozillaCookieJar works for curl's cookie files (GH-91852)


MozillaCookieJar works for curl's cookies
(cherry picked from commit 0ea8b925d096629852d1045c2c53ff6ad63199cc)

Co-authored-by: Boris Verkhovskiy <boris.verk at gmail.com>

files:
M Doc/library/http.cookiejar.rst
M Lib/http/cookiejar.py

diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index ba2fa018499c..1ce24c676182 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -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::
 
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index eaa76c26b9c5..0380d9f1096c 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -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



More information about the Python-checkins mailing list