Revision: 7861 Author: xqt Date: 2010-01-06 06:49:23 +0000 (Wed, 06 Jan 2010)
Log Message: ----------- declare globals (bugfix for #2926481)
Modified Paths: -------------- trunk/pywikipedia/disambredir.py
Modified: trunk/pywikipedia/disambredir.py =================================================================== --- trunk/pywikipedia/disambredir.py 2010-01-06 06:06:54 UTC (rev 7860) +++ trunk/pywikipedia/disambredir.py 2010-01-06 06:49:23 UTC (rev 7861) @@ -124,13 +124,10 @@ page.put(text, comment)
def main(): + global mysite, linktrail, page start = [] - test = False for arg in wikipedia.handleArgs(): - if arg.startswith("-test"): - test = True - else: - start.append(arg) + start.append(arg) if start: start = " ".join(start) else: