[PythonReports-users] PythonReport - deprecation warning on et.getchildren
Brought to you by:
a1s
From: Werner F. B. <wer...@fr...> - 2012-12-20 16:27:58
|
Hi, Before I forget about this one. Error saving template file This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead. I see the above for: builder.find_layout_parents datatypes.writexml In both cases I could just change from: for _child in element.getchildren(): to: for _child in element: Is this fine or do you prefer a different fix? There are some more calls to et.getchildren which I didn't hit, where I think the "list(elem)" solution should be used. Werner |