Revision: 6895 Author: cosoleto Date: 2009-05-17 16:06:52 +0000 (Sun, 17 May 2009)
Log Message: ----------- Use capitalize() instead of 'string[0] + string [1:]', fixes issue reported in bug #2792996 and patch #2792959.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-05-17 16:02:32 UTC (rev 6894) +++ trunk/pywikipedia/wikipedia.py 2009-05-17 16:06:52 UTC (rev 6895) @@ -1142,8 +1142,7 @@ else: # Normalize template capitalization self._site._disambigtemplates = set( - t[0].upper() + t[1:] - for t in distl + t.capitalize() for t in distl ) disambigInPage = self._site._disambigtemplates.intersection(self.templates()) self._isDisambig = len(disambigInPage) > 0
pywikipedia-svn@lists.wikimedia.org