list.pop() doesn't accept a second argument

This was introduced by 032271a030a6bbe39d22e9ebadf2a86ddf3b6705.
This commit is contained in:
Berker Peksag 2017-07-12 17:48:23 +03:00
parent f69c17f8e2
commit dd7c8f330b

View File

@ -205,7 +205,7 @@ class Arbiter(object):
while True:
self.maybe_promote_master()
sig = self.SIG_QUEUE.pop(0, None)
sig = self.SIG_QUEUE.pop(0) if self.SIG_QUEUE else None
if sig is None:
self.sleep()
self.murder_workers()