http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9308
Revision: 9308 Author: xqt Date: 2011-06-24 17:14:40 +0000 (Fri, 24 Jun 2011) Log Message: ----------- do not follow static redirects which means do not change the target links like -noredirect does (with -cleanup option. -force removes that link - maybe this should be fixed)
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2011-06-23 16:47:56 UTC (rev 9307) +++ trunk/pywikipedia/interwiki.py 2011-06-24 17:14:40 UTC (rev 9308) @@ -1271,6 +1271,9 @@ elif not globalvar.followredirect: if not globalvar.quiet or pywikibot.verbose: pywikibot.output(u"NOTE: not following %sredirects." % redir) + elif page.isStaticRedirect(): + if not globalvar.quiet or pywikibot.verbose: + pywikibot.output(u"NOTE: not following static %sredirects." % redir) elif page.site().family == redirectTargetPage.site().family \ and not self.skipPage(page, redirectTargetPage, counter): if self.addIfNew(redirectTargetPage, counter, page):
pywikipedia-svn@lists.wikimedia.org