jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[cleanup] Throttle.lastwait was never used and can be deprecated

Change-Id: I3b923b880260a056ac5130d097c9ac24f3c87728
---
M pywikibot/throttle.py
1 file changed, 8 insertions(+), 2 deletions(-)

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

To view, visit change 428423. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3b923b880260a056ac5130d097c9ac24f3c87728
Gerrit-Change-Number: 428423
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>