diff options
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 3 |
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() |