Skip to content

bpo-43225: [DOC] Add missing value returned by methods on cookiejar #24522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Doc/library/http.cookiejar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ and ``".168.1.2"``, 192.168.1.2 is blocked, but 193.168.1.2 is not.

.. method:: DefaultCookiePolicy.is_blocked(domain)

Return whether *domain* is on the blocklist for setting or receiving cookies.
Return ``True`` if *domain* is on the blocklist for setting or receiving
cookies.


.. method:: DefaultCookiePolicy.allowed_domains()
Expand All @@ -509,7 +510,7 @@ and ``".168.1.2"``, 192.168.1.2 is blocked, but 193.168.1.2 is not.

.. method:: DefaultCookiePolicy.is_not_allowed(domain)

Return whether *domain* is not on the allowlist for setting or receiving
Return ``True`` if *domain* is not on the allowlist for setting or receiving
cookies.

:class:`DefaultCookiePolicy` instances have the following attributes, which are
Expand Down Expand Up @@ -766,4 +767,3 @@ returned::
cj = CookieJar(policy)
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
r = opener.open("http://example.com/")