Skip to content

Commit d8a2300

Browse files
authored
Update ElementTree.py
move new parameter to end of argument list to non positional parameters.
1 parent f1235b5 commit d8a2300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/xml/etree/ElementTree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,10 @@ def iterfind(self, path, namespaces=None):
679679
def write(self, file_or_filename,
680680
encoding=None,
681681
xml_declaration=None,
682-
xml_declaration_definition="<?xml version='{version}' encoding='{encoding}'?>",
683682
default_namespace=None,
684683
method=None, *,
685-
short_empty_elements=True):
684+
short_empty_elements=True,
685+
xml_declaration_definition="<?xml version='{version}' encoding='{encoding}'?>"):
686686
"""Write element tree to a file as XML.
687687
688688
Arguments:

0 commit comments

Comments
 (0)