repeated equality comparison (auto-fix)

ruff 'PLR1714' --unsafe-fixes
This commit is contained in:
un-pogaz
2025-10-10 08:24:40 +02:00
parent f4e335bbe9
commit 0dc4e67529
45 changed files with 69 additions and 95 deletions
+1 -1
View File
@@ -1605,7 +1605,7 @@ dl.notes dd:last-of-type { page-break-after: avoid }
for c in node.childNodes:
self._walknode(c)
self.endElementNS(node.qname, node.tagName)
if node.nodeType == Node.TEXT_NODE or node.nodeType == Node.CDATA_SECTION_NODE:
if node.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
self.characters(str(node))
def odf2xhtml(self, odffile):