http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11347
Revision: 11347 Author: xqt Date: 2013-04-06 13:48:59 +0000 (Sat, 06 Apr 2013) Log Message: ----------- return first char uppercase for templatesWithParams(); fix for bug #3610073
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-04-06 10:10:28 UTC (rev 11346) +++ trunk/pywikipedia/wikipedia.py 2013-04-06 13:48:59 UTC (rev 11347) @@ -2842,7 +2842,8 @@ output(u"""\ thistxt argument of templatesWithParams is deprecated. Please use textlib method extract_templates_and_params() instead.""") - return extract_templates_and_params(thistxt, asList=True) + return [(t[0].upper() + t[1:], p) for t, p in + extract_templates_and_params(thistxt, asList=True)]
def getRedirectTarget(self): """Return a Page object for the target this Page redirects to.
pywikipedia-svn@lists.wikimedia.org