http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9500
Revision: 9500 Author: xqt Date: 2011-09-03 15:59:43 +0000 (Sat, 03 Sep 2011) Log Message: ----------- strip trailing whitespace
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-09-03 15:57:56 UTC (rev 9499) +++ trunk/pywikipedia/wikipedia.py 2011-09-03 15:59:43 UTC (rev 9500) @@ -3946,13 +3946,13 @@ output( u"Image description page %s contains invalid reference to [[%s]]." % (self.title(), match.group('title'))) - + def globalUsage(self): ''' Yield Pages on which the image is used globally. Currently this probably only works on Wikimedia Commonas. ''' - + if not self.site().has_api() or self.site().versionnumber() < 11: # Not supported, just return none return
pywikipedia-svn@lists.wikimedia.org