mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Avoid DeprecationWarning from xml.etree.Element.getchildren()
This commit is contained in:
parent
9cde4ce12c
commit
f84a4ee430
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
def sort_xml_elements(tree):
|
||||
|
||||
# Retrieve all children of the root XML node in the tree
|
||||
elements = tree.getchildren()
|
||||
elements = list(tree)
|
||||
|
||||
# Initialize empty lists for the sorted and comment elements
|
||||
sorted_elements = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue