jenkins-bot has submitted this change and it was merged.
Change subject: [lint] remove obsolete maxdelay in setDelay(). pep8 changes ......................................................................
[lint] remove obsolete maxdelay in setDelay(). pep8 changes
Change-Id: I784e8376924bd72b1ba33f97de1fa2bfd99ef702 --- M pywikibot/throttle.py 1 file changed, 4 insertions(+), 7 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py index db74e5d..a6854e8 100644 --- a/pywikibot/throttle.py +++ b/pywikibot/throttle.py @@ -127,13 +127,11 @@ f.close() self.process_multiplicity = count if self.verbosedelay: - pywikibot.output( - u"Found %(count)s %(mysite)s processes running, including this one." - % locals()) + pywikibot.output(u"Found %(count)s %(mysite)s processes " + u"running, including this one." % locals()) else: - pywikibot.log( - u"Found %(count)s %(mysite)s processes running, including this one." - % locals()) + pywikibot.log(u"Found %(count)s %(mysite)s processes " + u"running, including this one." % locals()) finally: self.lock.release()
@@ -141,7 +139,6 @@ """Set the nominal delays in seconds. Defaults to config values.""" self.lock.acquire() try: - maxdelay = self.maxdelay if delay is None: delay = self.mindelay if writedelay is None:
pywikibot-commits@lists.wikimedia.org