http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11277
Revision: 11277 Author: legoktm Date: 2013-03-26 00:53:33 +0000 (Tue, 26 Mar 2013) Log Message: ----------- Fix references to pywikibot.Page, patch by nu11zer0
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-03-25 23:55:40 UTC (rev 11276) +++ branches/rewrite/pywikibot/site.py 2013-03-26 00:53:33 UTC (rev 11277) @@ -1755,7 +1755,7 @@ if "missing" in pagedata: raise NoPage(page) else: - page = Page(self, pagedata['title']) + page = pywikibot.Page(self, pagedata['title']) api.update_page(page, pagedata) break
@@ -2888,7 +2888,7 @@ letitle=None): """Yield ImagePages from most recent uploads""" if isinstance(letitle, basestring): - letitle = pywikbot.Page(pywikibot.Link(letitle)) + letitle = pywikibot.Page(pywikibot.Link(letitle)) return self.logevents(logtype="upload", total=number, start=lestart, end=leend, user=leuser, page=letitle)
pywikipedia-svn@lists.wikimedia.org