http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11330
Revision: 11330 Author: xqt Date: 2013-04-03 20:01:45 +0000 (Wed, 03 Apr 2013) Log Message: ----------- to keep compatible we call extract_templates_and_params(thistxt, asList=True) to get the parameter list. NEW: The parameter items are strip()ped!
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-04-03 19:59:51 UTC (rev 11329) +++ trunk/pywikipedia/wikipedia.py 2013-04-03 20:01:45 UTC (rev 11330) @@ -2842,7 +2842,7 @@ output(u"""\ thistxt argument of templatesWithParams is deprecated. Please use textlib method extract_templates_and_params() instead.""") - return extract_templates_and_params(thistxt) + return extract_templates_and_params(thistxt, asList=True)
def getRedirectTarget(self): """Return a Page object for the target this Page redirects to.