Revision: 7695 Author: alexsh Date: 2009-11-26 09:28:38 +0000 (Thu, 26 Nov 2009)
Log Message: ----------- bugfix, variable typo
Modified Paths: -------------- trunk/pywikipedia/interwiki.py trunk/pywikipedia/replace.py trunk/pywikipedia/userlib.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-11-26 01:24:40 UTC (rev 7694) +++ trunk/pywikipedia/interwiki.py 2009-11-26 09:28:38 UTC (rev 7695) @@ -1647,7 +1647,7 @@ timeout *= 2 time.sleep(timeout) except pywikibot.ServerError: - if timeout>3600: + if timeout > 3600: raise pywikibot.output(u'ERROR putting page: ServerError.') pywikibot.output(u'Sleeping %i seconds before trying again.' % (timeout,))
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2009-11-26 01:24:40 UTC (rev 7694) +++ trunk/pywikipedia/replace.py 2009-11-26 09:28:38 UTC (rev 7695) @@ -305,7 +305,7 @@ self.recursive = recursive if addedCat: site = pywikibot.getSite() - self.addedCat = pywikibot.Page(site, addCat, defaultNamespace=14) + self.addedCat = pywikibot.Page(site, addedCat, defaultNamespace=14) self.sleep = sleep # Some function to set default editSummary should probably be added self.editSummary = editSummary
Modified: trunk/pywikipedia/userlib.py =================================================================== --- trunk/pywikipedia/userlib.py 2009-11-26 01:24:40 UTC (rev 7694) +++ trunk/pywikipedia/userlib.py 2009-11-26 09:28:38 UTC (rev 7695) @@ -73,7 +73,7 @@ return self.__str__()
def _load(self): - getall(self.site(), [self]) + getall(self.site(), [self], force=True) return
def registrationTime(self, force = False):
pywikipedia-svn@lists.wikimedia.org