http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9532
Revision: 9532 Author: xqt Date: 2011-09-18 17:10:08 +0000 (Sun, 18 Sep 2011) Log Message: ----------- do not localize #REDIRECT tag if the target page is the same
Modified Paths: -------------- trunk/pywikipedia/redirect.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2011-09-18 16:53:51 UTC (rev 9531) +++ trunk/pywikipedia/redirect.py 2011-09-18 17:10:08 UTC (rev 9532) @@ -659,7 +659,7 @@ '#%s %s' % (self.site.redirect(), targetPage.title(asLink=True, textlink=True)), oldText) - if text == oldText: + if redir.title() == targetPage.title() or text == oldText: pywikibot.output(u"Note: Nothing left to do on %s" % redir.title(asLink=True)) break
pywikipedia-svn@lists.wikimedia.org