Fix more deprecation warnings in xml module

This commit is contained in:
Veronica Berglyd Olsen
2024-04-28 18:29:15 +02:00
parent 205b17aea0
commit 8a08fe213c
+2 -2
View File
@@ -650,7 +650,7 @@ class ToOdt(Tokenizer):
for fPos, fFmt, fData in tFmt:
# Add any extra nodes
if xNode:
if xNode is not None:
parProc.appendNode(xNode)
xNode = None
@@ -699,7 +699,7 @@ class ToOdt(Tokenizer):
fLast = fPos
if xNode:
if xNode is not None:
parProc.appendNode(xNode)
if tFrag := tText[fLast:]: