Skip to content

Commit

Permalink
XMLTools - use noqa to silence PEP8 flake8 noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Twol committed Oct 5, 2023
1 parent d1cb16e commit 14d5a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Tools/XMLTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def elementsWithTag(el, tag):
# fiiixme! (works but isn't nice)
if isinstance(tag, str):
s = tag
tag = lambda x: x == s
tag = lambda x: x == s # noqa: E731

for x in el:
if x.nodeType != xml.dom.minidom.Element.nodeType:
Expand Down

0 comments on commit 14d5a46

Please sign in to comment.