From 7db6288923361564d569b1dfb2b1922664dac5c7 Mon Sep 17 00:00:00 2001 From: groceryheist Date: Wed, 4 Jul 2018 15:29:48 -0700 Subject: [PATCH] migrate reverts to python-mwreverts --- mw | 1 - wikiq | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 120000 mw diff --git a/mw b/mw deleted file mode 120000 index 75b92ba..0000000 --- a/mw +++ /dev/null @@ -1 +0,0 @@ -Mediawiki-Utilities/mw \ No newline at end of file diff --git a/wikiq b/wikiq index e693cd2..ad4d549 100755 --- a/wikiq +++ b/wikiq @@ -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: -- 2.39.5