OpenSCAP / openscap-daemon

Manages continuous scans of your infrastructure
https://www.open-scap.org/tools/openscap-daemon
GNU Lesser General Public License v2.1
106 stars 32 forks source link

Fix import cElementTree module #149

Closed jan-cerny closed 4 years ago

jan-cerny commented 4 years ago

The xml.etree.cElementTree is deprecated since Python 3.3 and it will be removed in Python 3.9. It can be replaced by xml.etree.ElementTree. See https://bugs.python.org/issue36543. We still want to import cElementTree when using Python 2, so we will try to import it and if the import fails we will use the latter.

Resolves: RHBZ#1817660

evgenyz commented 4 years ago

LGTM