http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11238
Revision: 11238 Author: amir Date: 2013-03-23 05:31:06 +0000 (Sat, 23 Mar 2013) Log Message: ----------- fixing bug #3608868
Modified Paths: -------------- trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py =================================================================== --- trunk/pywikipedia/featured.py 2013-03-22 22:01:35 UTC (rev 11237) +++ trunk/pywikipedia/featured.py 2013-03-23 05:31:06 UTC (rev 11238) @@ -352,7 +352,7 @@ if page.isRedirectPage(): page = page.getRedirectTarget() try: - iw=page.interwiki() + iw=page.interwiki(api=True) except: pywikibot.output(u"%s -> no interwiki, giving up" % page.title()) return None @@ -385,7 +385,7 @@ pywikibot.output(u"%s -> page doesn't exist, skipping" % ourpage.title()) return None try: - iw = ourpage.interwiki() + iw = ourpage.interwiki(api=True) except: return None backpage=None
pywikipedia-svn@lists.wikimedia.org