http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10644
Revision: 10644 Author: xqt Date: 2012-11-01 14:50:50 +0000 (Thu, 01 Nov 2012) Log Message: ----------- minor cosmetics from rewrite
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-11-01 14:50:11 UTC (rev 10643) +++ trunk/pywikipedia/wikipedia.py 2012-11-01 14:50:50 UTC (rev 10644) @@ -4044,8 +4044,8 @@ page. fileIsOnCommons : Return True if image stored on Wikimedia Commons. - fileIsShared : Return True if image stored on Wikitravel - shared repository. + fileIsShared : Return True if image stored on a shared + repository like Wikimedia Commons or Wikitravel. getFileMd5Sum : Return image file's MD5 checksum. getFileVersionHistory : Return the image file's version history. getFileVersionHistoryTable: Return the version history in the form of a @@ -4054,10 +4054,10 @@ globalUsage : Yield Pages on which the image is used globally
""" - def __init__(self, site, title, insite = None): + def __init__(self, site, title, insite=None): Page.__init__(self, site, title, insite, defaultNamespace=6) if self.namespace() != 6: - raise ValueError(u'BUG: %s is not in the image namespace!' % title) + raise ValueError(u"'%s' is not in the image namespace!" % title) self._imagePageHtml = None self._local = None self._latestInfo = {}
pywikipedia-svn@lists.wikimedia.org