diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-08 02:00:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 02:00:35 (GMT) |
commit | 1a31799d168d6f75ed0db89b5ea7cefda74be37b (patch) | |
tree | 9757147d5ee0056420515ee962266c4bbe713e45 /Doc | |
parent | 02394400f3e03b2c8be7154fd38981fa9e7d1ef0 (diff) | |
download | cpython-1a31799d168d6f75ed0db89b5ea7cefda74be37b.zip cpython-1a31799d168d6f75ed0db89b5ea7cefda74be37b.tar.gz cpython-1a31799d168d6f75ed0db89b5ea7cefda74be37b.tar.bz2 |
gh-61105: Add default param, note on using cookiejar subclass (GH-95427)
(cherry picked from commit 5eaf4d610147a3b9adc91a55790096d05bbe01d4)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/http.cookiejar.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst index 1ce24c6..3bdf9b5 100644 --- a/Doc/library/http.cookiejar.rst +++ b/Doc/library/http.cookiejar.rst @@ -61,7 +61,7 @@ The following classes are provided: responsible for storing and retrieving cookies from a file or database. -.. class:: FileCookieJar(filename, delayload=None, policy=None) +.. class:: FileCookieJar(filename=None, delayload=None, policy=None) *policy* is an object implementing the :class:`CookiePolicy` interface. For the other arguments, see the documentation for the corresponding attributes. @@ -71,6 +71,8 @@ The following classes are provided: :meth:`load` or :meth:`revert` method is called. Subclasses of this class are documented in section :ref:`file-cookie-jar-classes`. + This should not be initialized directly – use its subclasses below instead. + .. versionchanged:: 3.8 The filename parameter supports a :term:`path-like object`. @@ -317,7 +319,7 @@ FileCookieJar subclasses and co-operation with web browsers The following :class:`CookieJar` subclasses are provided for reading and writing. -.. class:: MozillaCookieJar(filename, delayload=None, policy=None) +.. class:: MozillaCookieJar(filename=None, 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 curl and the Lynx @@ -338,7 +340,7 @@ writing. Mozilla. -.. class:: LWPCookieJar(filename, delayload=None, policy=None) +.. class:: LWPCookieJar(filename=None, delayload=None, policy=None) A :class:`FileCookieJar` that can load from and save cookies to disk in format compatible with the libwww-perl library's ``Set-Cookie3`` file format. This is |