1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 15:43:39 +02:00

Merge pull request #1361 from dmach/fix-xml-indent-py36

Fix xml indent() on Python 3.6
This commit is contained in:
2023-07-18 21:36:47 +02:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ class APIXMLBase:
self.apiurl = apiurl
def to_bytes(self):
ET.indent(self.root, space=" ", level=0)
api.xml_indent(self.root)
return ET.tostring(self.root, encoding="utf-8")
def to_string(self):