summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-04-18 17:05:03 (GMT)
committerGitHub <noreply@github.com>2019-04-18 17:05:03 (GMT)
commite8113f51a8bdf33188ee30a1c038a298329e7bfa (patch)
tree9352ef363c501a34f32ed4e8e43d3cf3b23b0def /Doc
parent7e954e7de4f3777b5ce239640bd2b76aced09561 (diff)
downloadcpython-e8113f51a8bdf33188ee30a1c038a298329e7bfa.zip
cpython-e8113f51a8bdf33188ee30a1c038a298329e7bfa.tar.gz
cpython-e8113f51a8bdf33188ee30a1c038a298329e7bfa.tar.bz2
bpo-30485: Change the prefix for defining the default namespace in ElementPath from None to '' since there is existing code that uses that and it's more convenient to have an all-string-keys dict (e.g. when sorting items etc.). (#12860)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.etree.elementtree.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index c83e719..9e2c295 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -764,7 +764,7 @@ Element Objects
Finds the first subelement matching *match*. *match* may be a tag name
or a :ref:`path <elementtree-xpath>`. Returns an element instance
or ``None``. *namespaces* is an optional mapping from namespace prefix
- to full name. Pass ``None`` as prefix to move all unprefixed tag names
+ to full name. Pass ``''`` as prefix to move all unprefixed tag names
in the expression into the given namespace.
@@ -773,7 +773,7 @@ Element Objects
Finds all matching subelements, by tag name or
:ref:`path <elementtree-xpath>`. Returns a list containing all matching
elements in document order. *namespaces* is an optional mapping from
- namespace prefix to full name. Pass ``None`` as prefix to move all
+ namespace prefix to full name. Pass ``''`` as prefix to move all
unprefixed tag names in the expression into the given namespace.
@@ -784,7 +784,7 @@ Element Objects
of the first matching element, or *default* if no element was found.
Note that if the matching element has no text content an empty string
is returned. *namespaces* is an optional mapping from namespace prefix
- to full name. Pass ``None`` as prefix to move all unprefixed tag names
+ to full name. Pass ``''`` as prefix to move all unprefixed tag names
in the expression into the given namespace.