Fix JoinableQueue when items passed in constructor
unfinished_tasks variable wasn't set when items are passed in constructor, leading to ValueError: 'task_done() called too many times' when task_done() is called. test to duplicate the error: from gevent.queue import JoinableQueue q = JoinableQueue(items=[1,2,3]) q.get() q.task_done()
Showing
Please register or sign in to comment