From 48bf987570cd24a2c6308bf39198a40566d6aa22 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 27 Sep 2017 13:54:15 +0530 Subject: [PATCH] issue #20: fix queue.get() parameter list. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index b52c014c..e46d00e4 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -271,7 +271,7 @@ def _queue_interruptible_get(queue, timeout=None, block=True): msg = None while msg is None and (timeout is None or timeout < time.time()): try: - msg = queue.get(True, 0.5, block=block) + msg = queue.get(block, 0.5) except Queue.Empty: if block: break