diff options
author | Emmanuel Arias <eamanu@yaerobi.com> | 2021-11-15 22:44:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 22:44:32 (GMT) |
commit | 3352834f59531dfa42dbef00ada4fb95ded2ae3a (patch) | |
tree | cc74e7d2c6e2db02a56df9063b2fd96a3e47c16e /Doc/library/http.cookiejar.rst | |
parent | ad43dc0b54994e7e7d06e3d4896ade188b36ee12 (diff) | |
download | cpython-3352834f59531dfa42dbef00ada4fb95ded2ae3a.zip cpython-3352834f59531dfa42dbef00ada4fb95ded2ae3a.tar.gz cpython-3352834f59531dfa42dbef00ada4fb95ded2ae3a.tar.bz2 |
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 <andrei.avk@gmail.com>
* Update Doc/library/http.cookiejar.rst
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Diffstat (limited to 'Doc/library/http.cookiejar.rst')
-rw-r--r-- | Doc/library/http.cookiejar.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst index 3d59665..51a8c53 100644 --- a/Doc/library/http.cookiejar.rst +++ b/Doc/library/http.cookiejar.rst @@ -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() @@ -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 @@ -766,4 +767,3 @@ returned:: cj = CookieJar(policy) opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj)) r = opener.open("http://example.com/") - |