1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-04 14:43:38 +02:00

Fix xml indent() on Python 3.6

This commit is contained in:
2023-07-18 14:25:34 +02:00
parent c22aceb28d
commit 658f2acb4f

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