Fix more deprecation warnings in xml module
This commit is contained in:
@@ -650,7 +650,7 @@ class ToOdt(Tokenizer):
|
|||||||
for fPos, fFmt, fData in tFmt:
|
for fPos, fFmt, fData in tFmt:
|
||||||
|
|
||||||
# Add any extra nodes
|
# Add any extra nodes
|
||||||
if xNode:
|
if xNode is not None:
|
||||||
parProc.appendNode(xNode)
|
parProc.appendNode(xNode)
|
||||||
xNode = None
|
xNode = None
|
||||||
|
|
||||||
@@ -699,7 +699,7 @@ class ToOdt(Tokenizer):
|
|||||||
|
|
||||||
fLast = fPos
|
fLast = fPos
|
||||||
|
|
||||||
if xNode:
|
if xNode is not None:
|
||||||
parProc.appendNode(xNode)
|
parProc.appendNode(xNode)
|
||||||
|
|
||||||
if tFrag := tText[fLast:]:
|
if tFrag := tText[fLast:]:
|
||||||
|
|||||||
Reference in New Issue
Block a user