jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/952474 )
Change subject: [cleanup] replace deprecated releasepid attribute ......................................................................
[cleanup] replace deprecated releasepid attribute
replace deprecated releasepid attribute to prevent FutureWarning.
Change-Id: I02c46928ecf83cefb852d4ba61faa44ec3f7920d --- M pywikibot/throttle.py 1 file changed, 12 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py index 0daf9fc..adfc696 100644 --- a/pywikibot/throttle.py +++ b/pywikibot/throttle.py @@ -265,7 +265,7 @@
now = time.time() processes = [p for p in self._read_file() - if now - p.time <= self.releasepid and p.pid != pid] + if now - p.time <= self.expiry and p.pid != pid]
self._write_file(processes)