jenkins-bot submitted this change.
[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(-)
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)
To view, visit change 952474. To unsubscribe, or for help writing mail filters, visit settings.