summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.dom.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-12 14:57:03 (GMT)
committerGitHub <noreply@github.com>2019-11-12 14:57:03 (GMT)
commit138ccbb02216ca086047c3139857fb44f3dab1f9 (patch)
tree650ba3584d4d173fe36d757063909a09f239ebf2 /Doc/library/xml.dom.rst
parent9a13a388f202268dd7b771638adbec132449b98b (diff)
downloadcpython-138ccbb02216ca086047c3139857fb44f3dab1f9.zip
cpython-138ccbb02216ca086047c3139857fb44f3dab1f9.tar.gz
cpython-138ccbb02216ca086047c3139857fb44f3dab1f9.tar.bz2
bpo-38738: Fix formatting of True and False. (GH-17083)
* "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>".
Diffstat (limited to 'Doc/library/xml.dom.rst')
-rw-r--r--Doc/library/xml.dom.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst
index 18519a7..98454e1 100644
--- a/Doc/library/xml.dom.rst
+++ b/Doc/library/xml.dom.rst
@@ -210,7 +210,7 @@ DOM Level 2 added the ability to create new :class:`Document` and
.. method:: DOMImplementation.hasFeature(feature, version)
- Return true if the feature identified by the pair of strings *feature* and
+ Return ``True`` if the feature identified by the pair of strings *feature* and
*version* is implemented.
@@ -335,17 +335,17 @@ All of the components of an XML document are subclasses of :class:`Node`.
.. method:: Node.hasAttributes()
- Returns true if the node has any attributes.
+ Return ``True`` if the node has any attributes.
.. method:: Node.hasChildNodes()
- Returns true if the node has any child nodes.
+ Return ``True`` if the node has any child nodes.
.. method:: Node.isSameNode(other)
- Returns true if *other* refers to the same node as this node. This is especially
+ Return ``True`` if *other* refers to the same node as this node. This is especially
useful for DOM implementations which use any sort of proxy architecture (because
more than one object can refer to the same node).
@@ -604,12 +604,12 @@ of that class.
.. method:: Element.hasAttribute(name)
- Returns true if the element has an attribute named by *name*.
+ Return ``True`` if the element has an attribute named by *name*.
.. method:: Element.hasAttributeNS(namespaceURI, localName)
- Returns true if the element has an attribute named by *namespaceURI* and
+ Return ``True`` if the element has an attribute named by *namespaceURI* and
*localName*.