libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

python: replace libxml2 with lxml

Open rurban opened this issue 6 years ago • 0 comments

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()

rurban avatar Dec 25 '18 11:12 rurban