summaryrefslogtreecommitdiff
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-08-09 23:04:42 -0500
committerBrian Curtin <brian@python.org>2012-08-09 23:04:42 -0500
commita939105a4018398aa21ee152283e3db5c7acd662 (patch)
treefecd339c4cbdc09e32d0f19afa2ef8d99f3259f3 /Lib/threading.py
parent774c8a39dc6e30d5c0d00edfbe9b7e191e3b41d3 (diff)
downloadcpython-git-a939105a4018398aa21ee152283e3db5c7acd662.tar.gz
Fix #15567. collections.deque wasn't imported
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 22908550e0..db9ab29c7d 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -10,6 +10,7 @@ except ImportError:
import warnings
+from collections import deque as _deque
from time import time as _time, sleep as _sleep
from traceback import format_exc as _format_exc
@@ -913,7 +914,7 @@ def _test():
self.rc = Condition(self.mon)
self.wc = Condition(self.mon)
self.limit = limit
- self.queue = deque()
+ self.queue = _deque()
def put(self, item):
self.mon.acquire()