Update WikiExtractor.py

cgi.escape was deprecated and removed in Python 3.8 . Using html.escape is recommended.
This commit is contained in:
Giuseppe Attardi 2020-03-01 16:29:00 +01:00 committed by GitHub
parent e3dca79742
commit 16186e290d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -808,7 +808,7 @@ class Extractor(object):
text = text.replace('|-', '')
text = text.replace('|', '')
if options.toHTML:
text = cgi.escape(text)
text = html.escape(text)
return text