Revision: 6729 Author: nicdumz Date: 2009-04-26 09:58:10 +0000 (Sun, 26 Apr 2009)
Log Message: ----------- Fixing the self.pending issue: add to self.todo instead, and wait one more round
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-04-26 08:54:30 UTC (rev 6728) +++ trunk/pywikipedia/interwiki.py 2009-04-26 09:58:10 UTC (rev 6729) @@ -918,13 +918,7 @@ if page == self.originPage: if globalvar.initialredirect: self.originPage = redirectTargetPage - #XXX might not work if page.site != redirTar.site: - # We are appending an item to - # self.pending[redirTar.site] - # but we are iterating on self.pending at the same - # time. - # On the other hand... crosslanguage redirects? - self.pending.add(redirectTargetPage) + self.todo.add(redirectTargetPage) counter.plus(redirectTargetPage.site) else: # This is a redirect page to the origin. We don't need to
pywikipedia-svn@lists.wikimedia.org