summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2022-10-03 22:07:54 (GMT)
committerGitHub <noreply@github.com>2022-10-03 22:07:54 (GMT)
commit0ea8b925d096629852d1045c2c53ff6ad63199cc (patch)
tree4e3ecdd535ceac8d96a9282e520672c06a605e03
parentb0f89cb4311b696f875e58f14258ce315be09bce (diff)
downloadcpython-0ea8b925d096629852d1045c2c53ff6ad63199cc.zip
cpython-0ea8b925d096629852d1045c2c53ff6ad63199cc.tar.gz
cpython-0ea8b925d096629852d1045c2c53ff6ad63199cc.tar.bz2
Document that MozillaCookieJar works for curl's cookie files (#91852)
MozillaCookieJar works for curl's cookies
-rw-r--r--Doc/library/http.cookiejar.rst4
-rw-r--r--Lib/http/cookiejar.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index 53b3087..eb31315 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 c514e0d..65c45e2 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1985,7 +1985,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