http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9309
Revision: 9309 Author: xqt Date: 2011-06-24 17:37:20 +0000 (Fri, 24 Jun 2011) Log Message: ----------- do not follow static redirects (update from trunk r9308)
Modified Paths: -------------- branches/rewrite/scripts/interwiki.py
Modified: branches/rewrite/scripts/interwiki.py =================================================================== --- branches/rewrite/scripts/interwiki.py 2011-06-24 17:14:40 UTC (rev 9308) +++ branches/rewrite/scripts/interwiki.py 2011-06-24 17:37:20 UTC (rev 9309) @@ -1227,6 +1227,9 @@ elif not globalvar.followredirect: if not globalvar.quiet: pywikibot.output(u"NOTE: not following %sredirects." % redir) + elif page.isStaticRedirect(): + if not globalvar.quiet: + 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