Revision: 5632 Author: siebrand Date: 2008-06-26 10:38:10 +0000 (Thu, 26 Jun 2008)
Log Message: ----------- Speed things up a bit, as conflic resolution was not implemented: commonscat found in interwiki: fire.
Modified Paths: -------------- trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2008-06-26 10:32:34 UTC (rev 5631) +++ trunk/pywikipedia/commonscat.py 2008-06-26 10:38:10 UTC (rev 5632) @@ -173,6 +173,8 @@ commonscats.append(commonscatpage); wikipedia.output("Found link for " + page.title() + " at [[" + ipage.site().language() + ":" + ipage.title() + "]] to " + commonscatpage.title() + "."); commonscatpage = None + if len(commonscats) > 0: + break if len(commonscats) > 0: commonscatpage = commonscats.pop(); commonscat = commonscatpage.titleWithoutNamespace()
pywikipedia-l@lists.wikimedia.org