[Pywikipedia-svn] SVN: [7233] trunk/pywikipedia/disambredir.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Sun Sep 13 10:03:34 UTC 2009
Revision: 7233
Author: filnik
Date: 2009-09-13 10:03:34 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
Bugfix by xqt to bug: #2845036
Modified Paths:
--------------
trunk/pywikipedia/disambredir.py
Modified: trunk/pywikipedia/disambredir.py
===================================================================
--- trunk/pywikipedia/disambredir.py 2009-09-13 10:03:17 UTC (rev 7232)
+++ trunk/pywikipedia/disambredir.py 2009-09-13 10:03:34 UTC (rev 7233)
@@ -123,7 +123,7 @@
comment = wikipedia.translate(mysite, msg)
page.put(text, comment)
-try:
+def main():
start = []
test = False
for arg in wikipedia.handleArgs():
@@ -160,6 +160,9 @@
pagestoload = []
pagestodo = []
-finally:
+if __name__ == "__main__":
+ try:
+ main()
+ finally:
wikipedia.stopme()
More information about the Pywikipedia-svn
mailing list