This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author grzgrzgrz3
Recipients davin, grzgrzgrz3, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2017-06-09.13:04:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497013486.73.0.0370943040833.issue30595@psf.upfronthosting.co.za>
In-reply-to
Content
of course it should be `if not`:

diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py
index dda03dd..514f991 100644
--- a/Lib/multiprocessing/queues.py
+++ b/Lib/multiprocessing/queues.py
@@ -101,7 +101,7 @@ class Queue(object):
             try:
                 if block:
                     timeout = deadline - time.time()
-                    if timeout < 0 or not self._poll(timeout):
+                    if not self._poll(timeout):
                         raise Empty
                 elif not self._poll():
                     raise Empty
History
Date User Action Args
2017-06-09 13:04:46grzgrzgrz3setrecipients: + grzgrzgrz3, paul.moore, vstinner, tim.golden, zach.ware, steve.dower, davin
2017-06-09 13:04:46grzgrzgrz3setmessageid: <1497013486.73.0.0370943040833.issue30595@psf.upfronthosting.co.za>
2017-06-09 13:04:46grzgrzgrz3linkissue30595 messages
2017-06-09 13:04:46grzgrzgrz3create