collections: Import independent defaultdict and deque modules into namespace.

asyncio-segfault
Paul Sokolovsky 2014-04-18 04:35:08 +03:00
rodzic fc01d606ba
commit 488d248819
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -3,3 +3,11 @@
# CPython implementation brings in metaclasses and other bloat. # CPython implementation brings in metaclasses and other bloat.
# This is going to be just import-all for other modules in a namespace package # This is going to be just import-all for other modules in a namespace package
from _collections import * from _collections import *
try:
from .defaultdict import defaultdict
except ImportError:
pass
try:
from .deque import deque
except ImportError:
pass