Commit cc7063bb authored by Denis Bilenko's avatar Denis Bilenko

fix #103: Incorrect full() result for Queue(maxsize=None)

parent 78cfcca3
......@@ -102,7 +102,7 @@ class Queue(object):
``Queue(None)`` is never full.
"""
return self.qsize() >= self.maxsize
return self.maxsize is not None and self.qsize() >= self.maxsize
def put(self, item, block=True, timeout=None):
"""Put an item into the queue.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment