summaryrefslogtreecommitdiffstats
path: root/Lib/queue.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-06-25 01:53:30 (GMT)
committerGitHub <noreply@github.com>2019-06-25 01:53:30 (GMT)
commit3f5b9088b0ed08e1442cca37df78f609d5cd8c3c (patch)
treed89f5ad9c7ffaeadefe7928604fee1db24221bab /Lib/queue.py
parentb51b7137faa22e12c570c70fe0462c662ccd935e (diff)
downloadcpython-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.py2
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