Skip to content

Commit 8fd4fc7

Browse files
Simplify the documentation of the restrictions
1 parent e3010a5 commit 8fd4fc7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/library/xml.etree.elementtree.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,8 @@ Functions
739739
*prefix* is a namespace prefix. *uri* is a namespace uri. Tags and
740740
attributes in this namespace will be serialized with the given prefix, if at
741741
all possible.
742-
:exc:`ValueError` is raised if *prefix* is not a valid prefix,
743-
is reserved (``xmlns`` and ``ns`` followed by digits),
744-
or if *prefix* is ``xml`` and *uri* is not the XML namespace or vice versa.
742+
:exc:`ValueError` is raised if *prefix* is invalid or reserved
743+
(``ns`` followed by digits is reserved for the serializer).
745744

746745
.. versionadded:: 3.2
747746

0 commit comments

Comments
 (0)