diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-25 01:53:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-25 01:53:30 (GMT) |
commit | 3f5b9088b0ed08e1442cca37df78f609d5cd8c3c (patch) | |
tree | d89f5ad9c7ffaeadefe7928604fee1db24221bab /Lib/queue.py | |
parent | b51b7137faa22e12c570c70fe0462c662ccd935e (diff) | |
download | cpython-3f5b9088b0ed08e1442cca37df78f609d5cd8c3c.zip cpython-3f5b9088b0ed08e1442cca37df78f609d5cd8c3c.tar.gz cpython-3f5b9088b0ed08e1442cca37df78f609d5cd8c3c.tar.bz2 |
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
Diffstat (limited to 'Lib/queue.py')
-rw-r--r-- | Lib/queue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py index ef07957..5bb0431 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -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 |