mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Close issue25147: use C implementation of OrderedDict
This commit is contained in:
parent
6db1fd5fb8
commit
e5754ab0c4
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
from collections import OrderedDict
|
|
||||||
from types import MappingProxyType, DynamicClassAttribute
|
from types import MappingProxyType, DynamicClassAttribute
|
||||||
|
|
||||||
|
try:
|
||||||
|
from _collections import OrderedDict
|
||||||
|
except ImportError:
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Enum', 'IntEnum', 'unique']
|
__all__ = ['Enum', 'IntEnum', 'unique']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue