Skip to content

Commit 488d248

Browse files
committed
collections: Import independent defaultdict and deque modules into namespace.
1 parent fc01d60 commit 488d248

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

collections/collections/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
# CPython implementation brings in metaclasses and other bloat.
44
# This is going to be just import-all for other modules in a namespace package
55
from _collections import *
6+
try:
7+
from .defaultdict import defaultdict
8+
except ImportError:
9+
pass
10+
try:
11+
from .deque import deque
12+
except ImportError:
13+
pass

0 commit comments

Comments
 (0)