Skip to content

Commit 52f96d3

Browse files
gh-103092: Isolate _collections (#103093)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
1 parent 411b169 commit 52f96d3

File tree

5 files changed

+287
-283
lines changed

5 files changed

+287
-283
lines changed

Diff for: Lib/collections/__init__.py

+5
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:
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)