mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Disable a useless pylint warning
This commit is contained in:
parent
ce362e1b50
commit
6121bc882a
1 changed files with 3 additions and 0 deletions
|
@ -52,8 +52,11 @@ def _et_indent(element, level=0):
|
|||
element.tail = i
|
||||
for sub_element in element:
|
||||
_et_indent(sub_element, level + 1)
|
||||
# sub_element is always defined as len(element) > 0
|
||||
# pylint: disable=W0631
|
||||
if not sub_element.tail or not sub_element.tail.strip():
|
||||
sub_element.tail = i
|
||||
# pylint: enable=W0631
|
||||
else:
|
||||
if level and (not element.tail or not element.tail.strip()):
|
||||
element.tail = i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue