FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-61105: Add default param, note on using cookiejar subclass by slateny · Pull Request #95427 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 5 additions & 3 deletions Doc/library/http.cookiejar.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down Expand Up @@ -318,7 +320,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 the Lynx and Netscape
Expand All @@ -339,7 +341,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
Expand Down

Back | FazBrowse Home | New Git URL