http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11061
Revision: 11061 Author: xqt Date: 2013-02-10 13:21:48 +0000 (Sun, 10 Feb 2013) Log Message: ----------- bugfix for bug #3603982
Modified Paths: -------------- trunk/pywikipedia/fixing_redirects.py
Modified: trunk/pywikipedia/fixing_redirects.py =================================================================== --- trunk/pywikipedia/fixing_redirects.py 2013-02-09 17:46:15 UTC (rev 11060) +++ trunk/pywikipedia/fixing_redirects.py 2013-02-10 13:21:48 UTC (rev 11061) @@ -170,8 +170,8 @@ try: target = page2.getRedirectTarget() except pywikibot.NoPage: - gen = s.logpages(number=1, mode='move', title=page2.title(), - dump=True) + gen = mysite.logpages(number=1, mode='move', title=page2.title(), + dump=True) try: lastmove = gen.next()['move'] except StopIteration: