libredwg
libredwg copied to clipboard
python: replace libxml2 with lxml
libxml2 is outdated, py*-lxml is packaged everywhere.
-import libxml2
+import lxml
- doc = libxml2.parseFile(ideal)
+ doc = etree.parse(ideal)
- root = doc.getRootElement()
+ root = doc.getroot()