Revision: 4971
Author: rotem
Date: 2008-02-04 12:30:03 +0000 (Mon, 04 Feb 2008)
Log Message:
-----------
(bug 1882826) Cannot use -lang parameter in standardize_interwiki.py
Modified Paths:
--------------
trunk/pywikipedia/standardize_interwiki.py
Modified: trunk/pywikipedia/standardize_interwiki.py
===================================================================
--- trunk/pywikipedia/standardize_interwiki.py 2008-02-04 12:26:49 UTC (rev 4970)
+++ trunk/pywikipedia/standardize_interwiki.py 2008-02-04 12:30:03 UTC (rev 4971)
@@ -32,9 +32,7 @@
'nds':u'Bot: Links twüschen Wikis standardisseern',
'zh':u'機器人: 跨語連結標準化',
}
-site = wikipedia.getSite()
-comm = wikipedia.translate(site, comment)
-
+
# Some parameters
options = list()
start = list()
@@ -52,6 +50,9 @@
else:
start = unicode(arg[7:])
+site = wikipedia.getSite()
+comm = wikipedia.translate(site, comment)
+
# What follows is the main part of the code.
try:
for pl in site.allpages(start):
Show replies by date