Skip to content

Commit e282093

Browse files
erlend-aaslandkumaraditya303
authored andcommitted
pythongh-103092: Isolate _collections (python#103093)
Co-authored-by: Kumar Aditya <[email protected]>
1 parent 989fa92 commit e282093

File tree

5 files changed

+287
-283
lines changed

5 files changed

+287
-283
lines changed

Lib/collections/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
else:
4646
_collections_abc.MutableSequence.register(deque)
4747

48+
try:
49+
from _collections import _deque_iterator
50+
except ImportError:
51+
pass
52+
4853
try:
4954
from _collections import defaultdict
5055
except ImportError:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Isolate :mod:`!_collections` (apply :pep:`687`). Patch by Erlend E. Aasland.

0 commit comments

Comments
 (0)