]> code.communitydata.science - mediawiki_dump_tools.git/commitdiff
migrate reverts to python-mwreverts
authorgroceryheist <nathante@uw.edu>
Wed, 4 Jul 2018 22:29:48 +0000 (15:29 -0700)
committergroceryheist <nathante@uw.edu>
Wed, 4 Jul 2018 22:29:48 +0000 (15:29 -0700)
mw [deleted symlink]
wikiq

diff --git a/mw b/mw
deleted file mode 120000 (symlink)
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 e693cd2ba2dd3ab19ed61505a529f8d216219e8b..ad4d549c4cefa7a4220fe2ab3f399b7d3668a7b2 100755 (executable)
--- 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.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
 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)
 
                 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:
 
             # Iterate through a page's revisions
             for rev in page:

Community Data Science Collective || Want to submit a patch?