From 3f5b9088b0ed08e1442cca37df78f609d5cd8c3c Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Tue, 25 Jun 2019 02:53:30 +0100 Subject: bpo-37394: Fix pure Python implementation of the queue module (GH-14351) --- Lib/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/queue.py') diff --git a/Lib/queue.py b/Lib/queue.py index ef07957781a..5bb0431e949 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 -- cgit v1.2.3