Skip to content

Commit

Permalink
Merge "[cleanup] replace deprecated releasepid attribute"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Aug 26, 2023
2 parents 5418b14 + 65c63e0 commit 6a2b855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/throttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def drop(self) -> None:

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)

Expand Down

0 comments on commit 6a2b855

Please sign in to comment.