mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 09:12:34 -04:00
repeated equality comparison (auto-fix)
ruff 'PLR1714' --unsafe-fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user