Revision: 4267 Author: wikipedian Date: 2007-09-13 10:20:55 +0000 (Thu, 13 Sep 2007)
Log Message: ----------- disabled some code because it slows this method down, and because it is unclear what it's supposed to do.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-09-13 10:17:57 UTC (rev 4266) +++ trunk/pywikipedia/wikipedia.py 2007-09-13 10:20:55 UTC (rev 4267) @@ -3813,14 +3813,16 @@ fileext = title[len(title)-3:]
if title not in seen and fileext == extension: - # Check whether the media is used in a Proofread page - basename = title[6:] - page = Page(self, 'Page:' + basename) + ## Check whether the media is used in a Proofread page + # code disabled because it slows this method down, and + # because it is unclear what it's supposed to do. + #basename = title[6:] + #page = Page(self, 'Page:' + basename)
- if not page.exists(): - seen.add(title) - image = ImagePage(self, title) - yield image + #if not page.exists(): + seen.add(title) + image = ImagePage(self, title) + yield image if not repeat: break