@@ -428,7 +428,7 @@ Functions
428428 arguments. Returns an element instance.
429429
430430
431- .. function :: tostring(element, encoding="us-ascii", method="xml", *, \
431+ .. function :: tostring(element, encoding="us-ascii", method="xml", *,\
432432 short_empty_elements=True)
433433
434434 Generates a string representation of an XML element, including all
@@ -443,7 +443,7 @@ Functions
443443 The *short_empty_elements * parameter.
444444
445445
446- .. function :: tostringlist(element, encoding="us-ascii", method="xml", *, \
446+ .. function :: tostringlist(element, encoding="us-ascii", method="xml", *,\
447447 short_empty_elements=True)
448448
449449 Generates a string representation of an XML element, including all
@@ -751,8 +751,9 @@ ElementTree Objects
751751 section root element.
752752
753753
754- .. method :: write(file, encoding="us-ascii", xml_declaration=None, \
755- method="xml", *, short_empty_elements=True)
754+ .. method :: write(file, encoding="us-ascii", xml_declaration=None,\
755+ default_namespace=None, method="xml", *,\
756+ short_empty_elements=True)
756757
757758 Writes the element tree to a file, as XML. *file * is a file name, or a
758759 :term: `file object ` opened for writing. *encoding * [1 ]_ is the output
@@ -761,7 +762,8 @@ ElementTree Objects
761762 file. Use ``False `` for never, ``True `` for always, ``None ``
762763 for only if not US-ASCII or UTF-8 or Unicode (default is ``None ``).
763764 *method * is either ``"xml" ``, ``"html" `` or ``"text" `` (default is
764- ``"xml" ``).
765+ ``"xml" ``). *default_namespace * sets the default XML namespace (for
766+ "xmlns").
765767 The keyword-only *short_empty_elements * parameter controls the formatting
766768 of elements that contain no content. If *True * (the default), they are
767769 emitted as a single self-closed tag, otherwise they are emitted as a pair
0 commit comments