Skip to content

Commit 3352834

Browse files
eamanuakulakov
andauthored
bpo-43225: [DOC] Add missing value returned by methods on cookiejar (GH-24522)
* Add missing value returned by methods on cookiejar Documentation say that return something but don't specific with what value is return, and that can be confuse. This patch add that information. * Update Doc/library/http.cookiejar.rst Co-authored-by: andrei kulakov <[email protected]> * Update Doc/library/http.cookiejar.rst Co-authored-by: andrei kulakov <[email protected]> Co-authored-by: andrei kulakov <[email protected]>
1 parent ad43dc0 commit 3352834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/http.cookiejar.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ and ``".168.1.2"``, 192.168.1.2 is blocked, but 193.168.1.2 is not.
494494

495495
.. method:: DefaultCookiePolicy.is_blocked(domain)
496496

497-
Return whether *domain* is on the blocklist for setting or receiving cookies.
497+
Return ``True`` if *domain* is on the blocklist for setting or receiving
498+
cookies.
498499

499500

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

510511
.. method:: DefaultCookiePolicy.is_not_allowed(domain)
511512

512-
Return whether *domain* is not on the allowlist for setting or receiving
513+
Return ``True`` if *domain* is not on the allowlist for setting or receiving
513514
cookies.
514515

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

0 commit comments

Comments
 (0)