Revision: 6635 Author: cosoleto Date: 2009-04-19 12:47:38 +0000 (Sun, 19 Apr 2009)
Log Message: ----------- DuplicateFilterPageGenerator becomes 78% faster on Python 2.5.2 replacing Page.aslink() calls.
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2009-04-19 11:08:47 UTC (rev 6634) +++ trunk/pywikipedia/pagegenerators.py 2009-04-19 12:47:38 UTC (rev 6635) @@ -707,7 +707,7 @@ """ seenPages = set() for page in generator: - _page = page.aslink(forceInterwiki = True)[2:-2] + _page = u"%s:%s:%s" % (page._site.family.name, page._site.lang, page._title) if _page not in seenPages: seenPages.add(_page) yield page
pywikipedia-svn@lists.wikimedia.org