jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/428423 )
Change subject: [cleanup] Throttle.lastwait was never used and can be deprecated ......................................................................
[cleanup] Throttle.lastwait was never used and can be deprecated
Change-Id: I3b923b880260a056ac5130d097c9ac24f3c87728 --- M pywikibot/throttle.py 1 file changed, 8 insertions(+), 2 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py index 40022fb..ebad441 100644 --- a/pywikibot/throttle.py +++ b/pywikibot/throttle.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Mechanics to slow down wiki read and/or write rate.""" # -# (C) Pywikibot team, 2008-2017 +# (C) Pywikibot team, 2008-2018 # # Distributed under the terms of the MIT license. # @@ -13,6 +13,7 @@
import pywikibot from pywikibot import config +from pywikibot.tools import deprecated
_logger = "wiki.throttle"
@@ -64,7 +65,6 @@ # Free the process id after this many seconds: self.releasepid = 1200
- self.lastwait = 0.0 self.delay = 0 self.checktime = 0 self.multiplydelay = multiplydelay @@ -72,6 +72,12 @@ self.checkMultiplicity() self.setDelays()
+ @deprecated + @property + def lastwait(self): + """DEPRECATED property.""" + return 0.0 + def checkMultiplicity(self): """Count running processes for site and set process_multiplicity.""" global pid
pywikibot-commits@lists.wikimedia.org