summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookiejar.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-12 16:54:10 (GMT)
committerGitHub <noreply@github.com>2019-11-12 16:54:10 (GMT)
commitd360346640e19231032b072216195484fa2450b4 (patch)
tree3944c610d7a2b3cbe6a08fbd69ebdace8659a8a1 /Doc/library/http.cookiejar.rst
parent29fd6a77d509cffacc5691ebd9dab53455ad959e (diff)
downloadcpython-d360346640e19231032b072216195484fa2450b4.zip
cpython-d360346640e19231032b072216195484fa2450b4.tar.gz
cpython-d360346640e19231032b072216195484fa2450b4.tar.bz2
[3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)
* "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>". (cherry picked from commit 138ccbb02216ca086047c3139857fb44f3dab1f9)
Diffstat (limited to 'Doc/library/http.cookiejar.rst')
-rw-r--r--Doc/library/http.cookiejar.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index 1788bd8..9ac5d52 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -378,7 +378,7 @@ methods:
.. method:: CookiePolicy.domain_return_ok(domain, request)
- Return false if cookies should not be returned, given cookie domain.
+ Return ``False`` if cookies should not be returned, given cookie domain.
This method is an optimization. It removes the need for checking every cookie
with a particular domain (which might involve reading many files). Returning
@@ -402,7 +402,7 @@ methods:
.. method:: CookiePolicy.path_return_ok(path, request)
- Return false if cookies should not be returned, given cookie path.
+ Return ``False`` if cookies should not be returned, given cookie path.
See the documentation for :meth:`domain_return_ok`.
@@ -711,7 +711,7 @@ accessed using the following methods:
.. method:: Cookie.has_nonstandard_attr(name)
- Return true if cookie has the named cookie-attribute.
+ Return ``True`` if cookie has the named cookie-attribute.
.. method:: Cookie.get_nonstandard_attr(name, default=None)