Revision: 6555 Author: nicdumz Date: 2009-03-25 18:28:35 +0000 (Wed, 25 Mar 2009)
Log Message: ----------- Syntax fix for python pre - 2.3.4
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-03-24 05:42:13 UTC (rev 6554) +++ trunk/pywikipedia/wikipedia.py 2009-03-25 18:28:35 UTC (rev 6555) @@ -1872,10 +1872,10 @@ Template parameters are ignored. """ if not hasattr(self, "_templates"): - self._templates = list(set(template + self._templates = list(set([template for (template, param) in self.templatesWithParams( - get_redirect=get_redirect))) + get_redirect=get_redirect)])) return self._templates
def templatesWithParams(self, thistxt=None, get_redirect=False):
pywikipedia-l@lists.wikimedia.org