pnuu/fmiopendata

Fix deprecation warnings in WFS XML handling

Closed this issue · 1 comments

pnuu commented

The use of elem.getChildren() has been deprecated, and these should be fixed in fmiopendata.wfs module:

fmiopendata/tests/test_wfs.py::test_get_stored_query_descriptions
  /home/pnuu/Software/fmiopendata/fmiopendata/wfs.py:100: DeprecationWarning: This method will be removed in future versions.  Use 'list(elem)' or iteration over elem instead.
    for f in root.getchildren():

fmiopendata/tests/test_wfs.py: 141 warnings
  /home/pnuu/Software/fmiopendata/fmiopendata/wfs.py:103: DeprecationWarning: This method will be removed in future versions.  Use 'list(elem)' or iteration over elem instead.
    f_ch = f.getchildren()
pnuu commented

Fixed in #27