http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11571
Revision: 11571 Author: xqt Date: 2013-05-20 12:20:18 +0000 (Mon, 20 May 2013) Log Message: ----------- fix for generator
Modified Paths: -------------- trunk/pywikipedia/templatecount.py
Modified: trunk/pywikipedia/templatecount.py =================================================================== --- trunk/pywikipedia/templatecount.py 2013-05-20 11:59:06 UTC (rev 11570) +++ trunk/pywikipedia/templatecount.py 2013-05-20 12:20:18 UTC (rev 11571) @@ -30,7 +30,8 @@
""" # -# (C) Pywikipedia bot team, 2006-2013 +# (c) Pywikipedia bot team, 2006-2012 +# (c) xqt, 2009-2013 # # Distributed under the terms of the MIT license. # @@ -47,8 +48,7 @@
@staticmethod def countTemplates(templates, namespaces): - templateDict = TemplateCountRobot.generate_template_dict(templates, - namespaces) + templateDict = TemplateCountRobot.template_dict(templates, namespaces) pywikibot.output(u'\nNumber of transclusions per template', toStdout=True) pywikibot.output(u'-' * 36, toStdout=True)