http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11518
Revision: 11518 Author: russblau Date: 2013-05-09 17:59:23 +0000 (Thu, 09 May 2013) Log Message: ----------- Fix bug #3610411: a bug in the constructor of class Page
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2013-05-09 17:50:39 UTC (rev 11517) +++ branches/rewrite/pywikibot/page.py 2013-05-09 17:59:23 UTC (rev 11518) @@ -75,6 +75,7 @@ """ if isinstance(source, pywikibot.site.BaseSite): self._link = Link(title, source=source, defaultNamespace=ns) + self._revisions = {} elif isinstance(source, Page): # copy all of source's attributes to this object self.__dict__ = source.__dict__ @@ -83,11 +84,11 @@ self._link = Link(title, source=source.site, defaultNamespace=ns) elif isinstance(source, Link): self._link = source + self._revisions = {} else: raise pywikibot.Error( "Invalid argument type '%s' in Page constructor: %s" % (type(source), source)) - self._revisions = {}
@property def site(self):