http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11070
Revision: 11070 Author: drtrigon Date: 2013-02-10 16:50:53 +0000 (Sun, 10 Feb 2013) Log Message: ----------- bug fix; for DataPage and removal of obsolete variable
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-02-10 16:00:37 UTC (rev 11069) +++ trunk/pywikipedia/wikipedia.py 2013-02-10 16:50:53 UTC (rev 11070) @@ -4091,7 +4091,7 @@ self._originTitle = title source = self._originSite.data_repository() Page.__init__(self, source, title, *args, **kwargs) - if not self._originSite is source: + if not (self._originSite == source): self._title = None
def setitem(self, summary=None, watchArticle=False, minorEdit=True, @@ -4409,7 +4409,6 @@ # retrying is done by query.GetData data = query.GetData(params, self.site(), sysop=sysop) search = data['search'] - debuginfo = data['debuginfo']
if 'error' in data: raise RuntimeError("API query error: %s" % data)