Revision: 5571 Author: nicdumz Date: 2008-06-15 15:14:58 +0000 (Sun, 15 Jun 2008)
Log Message: ----------- Applying patch #1992469 [Prevent Double Redirects in capitalize_redirects.py] by compwhizii. Thanks !
Modified Paths: -------------- trunk/pywikipedia/capitalize_redirects.py
Modified: trunk/pywikipedia/capitalize_redirects.py =================================================================== --- trunk/pywikipedia/capitalize_redirects.py 2008-06-15 15:00:28 UTC (rev 5570) +++ trunk/pywikipedia/capitalize_redirects.py 2008-06-15 15:14:58 UTC (rev 5571) @@ -57,6 +57,8 @@
def run(self): for page in self.generator: + if page.isRedirectPage(): + page = page.getRedirectTarget() page_t = page.title() # Show the title of the page we're working on. # Highlight the title in purple.