http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9163
Revision: 9163 Author: xqt Date: 2011-04-12 06:07:23 +0000 (Tue, 12 Apr 2011) Log Message: ----------- page object has no versionnumber() use page.site() instead (fix for r9160)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-04-12 06:04:32 UTC (rev 9162) +++ trunk/pywikipedia/wikipedia.py 2011-04-12 06:07:23 UTC (rev 9163) @@ -1113,7 +1113,7 @@
""" found = False - if self.isRedirectPage() and self.versionnumber() > 13: + if self.isRedirectPage() and self.site().versionnumber() > 13: staticKeys = self.site().getmagicwords('staticredirect') text = self.get(get_redirect=True, force=force) if staticKeys:
pywikipedia-svn@lists.wikimedia.org