Fix PEP-8
This commit is contained in:
parent
c2c13b715d
commit
8199c2ce5b
1 changed files with 2 additions and 2 deletions
|
@ -619,14 +619,14 @@ def indent(elem, level=0):
|
|||
"""
|
||||
Prettifies xml trees. Pass the etree root in
|
||||
"""
|
||||
i = "\n" + level*" "
|
||||
i = "\n" + level * " "
|
||||
if len(elem):
|
||||
if not elem.text or not elem.text.strip():
|
||||
elem.text = i + " "
|
||||
if not elem.tail or not elem.tail.strip():
|
||||
elem.tail = i
|
||||
for elem in elem:
|
||||
indent(elem, level+1)
|
||||
indent(elem, level + 1)
|
||||
if not elem.tail or not elem.tail.strip():
|
||||
elem.tail = i
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue