mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
(cherry picked from commit 3f5b9088b0
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
ced9e11931
commit
5bf3b89dfb
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