mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-03 06:32: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:
commit
2d9277215d
@ -10,7 +10,7 @@ class APIXMLBase:
|
|||||||
self.apiurl = apiurl
|
self.apiurl = apiurl
|
||||||
|
|
||||||
def to_bytes(self):
|
def to_bytes(self):
|
||||||
ET.indent(self.root, space=" ", level=0)
|
api.xml_indent(self.root)
|
||||||
return ET.tostring(self.root, encoding="utf-8")
|
return ET.tostring(self.root, encoding="utf-8")
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user