Update WikiExtractor.py
cgi.escape was deprecated and removed in Python 3.8 . Using html.escape is recommended.
This commit is contained in:
parent
e3dca79742
commit
16186e290d
@ -808,7 +808,7 @@ class Extractor(object):
|
|||||||
text = text.replace('|-', '')
|
text = text.replace('|-', '')
|
||||||
text = text.replace('|', '')
|
text = text.replace('|', '')
|
||||||
if options.toHTML:
|
if options.toHTML:
|
||||||
text = cgi.escape(text)
|
text = html.escape(text)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user