1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-02 14:12:12 +01:00

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

Fix xml indent() on Python 3.6
This commit is contained in:
Daniel Mach 2023-07-18 21:36:47 +02:00 committed by GitHub
commit 2d9277215d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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