Close issue25147: use C implementation of OrderedDict
This commit is contained in:
parent
6db1fd5fb8
commit
e5754ab0c4
|
@ -1,7 +1,12 @@
|
|||
import sys
|
||||
from collections import OrderedDict
|
||||
from types import MappingProxyType, DynamicClassAttribute
|
||||
|
||||
try:
|
||||
from _collections import OrderedDict
|
||||
except ImportError:
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
__all__ = ['Enum', 'IntEnum', 'unique']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue