* 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>
.. 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()
.. 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
cj = CookieJar(policy)
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
r = opener.open("http://example.com/")
-