Skip to content

Commit 59ef1e3

Browse files
kzscisoftarun3688
authored andcommitted
Replaced deprecated 'getchildren' method with 'list(elem)' for Python>=3.2
1 parent 0abd16e commit 59ef1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ def xmlparse(self):
959959
scalar["causality"] = sv.get('causality')
960960
scalar["alias"] = sv.get('alias')
961961
scalar["aliasvariable"] = sv.get('aliasVariable')
962-
ch = sv.getchildren()
962+
ch = list(sv)
963963
start = None
964964
for att in ch:
965965
start = att.get('start')

0 commit comments

Comments
 (0)