mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix #15567. collections.deque wasn't imported
This commit is contained in:
parent
774c8a39dc
commit
a939105a40
2 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,7 @@ except ImportError:
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
from collections import deque as _deque
|
||||||
from time import time as _time, sleep as _sleep
|
from time import time as _time, sleep as _sleep
|
||||||
from traceback import format_exc as _format_exc
|
from traceback import format_exc as _format_exc
|
||||||
|
|
||||||
|
@ -913,7 +914,7 @@ def _test():
|
||||||
self.rc = Condition(self.mon)
|
self.rc = Condition(self.mon)
|
||||||
self.wc = Condition(self.mon)
|
self.wc = Condition(self.mon)
|
||||||
self.limit = limit
|
self.limit = limit
|
||||||
self.queue = deque()
|
self.queue = _deque()
|
||||||
|
|
||||||
def put(self, item):
|
def put(self, item):
|
||||||
self.mon.acquire()
|
self.mon.acquire()
|
||||||
|
|
|
@ -92,6 +92,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #15567: Fix NameError when running threading._test
|
||||||
|
|
||||||
- Issue #13052: Fix IDLE crashing when replace string in Search/Replace dialog
|
- Issue #13052: Fix IDLE crashing when replace string in Search/Replace dialog
|
||||||
ended with '\'. Patch by Roger Serwy.
|
ended with '\'. Patch by Roger Serwy.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue