migrate reverts to python-mwreverts

This commit is contained in:
Nathan TeBlunthuis 2018-07-04 15:29:48 -07:00
parent a883cb536b
commit 7db6288923
2 changed files with 2 additions and 3 deletions

1
mw
View File

@ -1 +0,0 @@
Mediawiki-Utilities/mw

4
wikiq
View File

@ -15,7 +15,7 @@ from hashlib import sha1
from mw.xml_dump import Iterator
from mw.lib import persistence
from mw.lib import reverts
import mwreverts
from urllib.parse import quote
TO_ENCODE = ('title', 'editor')
PERSISTENCE_RADIUS=7
@ -147,7 +147,7 @@ class WikiqParser():
state = persistence.State()
window = deque(maxlen=PERSISTENCE_RADIUS)
rev_detector = reverts.Detector()
rev_detector = mwreverts.Detector()
# Iterate through a page's revisions
for rev in page: