[FIX]xml-write macro needs ET (ElementTree)
This commit is contained in:
parent
2d520c2d8a
commit
48a14d8dd9
@ -107,7 +107,8 @@
|
||||
(defmacro/g! xml-write [filename tree]
|
||||
"Write XML file according to filename and given tree"
|
||||
`(do
|
||||
(import [os [path]])
|
||||
(import [os [path]]
|
||||
[xml.etree.ElementTree :as ET])
|
||||
(if-python2
|
||||
(setv ~g!output-xml (.tostring ET ~tree))
|
||||
(setv ~g!output-xml (.decode (.tostring ET ~tree) "utf-8")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user