mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
This commit is contained in:
parent
b51b7137fa
commit
3f5b9088b0
3 changed files with 109 additions and 49 deletions
|
@ -14,7 +14,7 @@ __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue', 'SimpleQueue'
|
|||
|
||||
try:
|
||||
from _queue import Empty
|
||||
except AttributeError:
|
||||
except ImportError:
|
||||
class Empty(Exception):
|
||||
'Exception raised by Queue.get(block=0)/get_nowait().'
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue