http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11148
Revision: 11148 Author: xqt Date: 2013-03-02 07:32:23 +0000 (Sat, 02 Mar 2013) Log Message: ----------- fix for r11142
Modified Paths: -------------- trunk/pywikipedia/commons_link.py
Modified: trunk/pywikipedia/commons_link.py =================================================================== --- trunk/pywikipedia/commons_link.py 2013-03-01 22:08:18 UTC (rev 11147) +++ trunk/pywikipedia/commons_link.py 2013-03-02 07:32:23 UTC (rev 11148) @@ -124,7 +124,7 @@ try: pywikibot.output(u'\n>>>> %s <<<<' % page.title()) commons = pywikibot.getSite().image_repository() - commonsCategory = catlib.Category(getCommons, + commonsCategory = catlib.Category(commons, 'Category:%s' % page.title()) try: getcommonscat = commonsCategory.get(get_redirect=True)
pywikipedia-svn@lists.wikimedia.org