GeoNode / geoserver-restconfig

geoserver-restconfig is a python library for manipulating a GeoServer instance via the GeoServer RESTConfig API.
MIT License
46 stars 29 forks source link

Incompatible with python 3.9+ #18

Closed gt-novelt closed 2 years ago

gt-novelt commented 3 years ago

Describe the bug Fails to get default sld with python 3.9 or higher because of the use of deprecated xml.etree.ElementTree.Element.getchildren()

To Reproduce Steps to reproduce the behavior:

  1. python 3.9 or higher
  2. get an existing layer with a default sld
  3. layer.default_style
  4. exception 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'