summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2015-09-18 05:03:52 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2015-09-18 05:03:52 (GMT)
commite5754ab0c4ab44cd1e7e5484ce07e640964387dd (patch)
tree9ff68007f9afa227924ae8abd071e84b90567dd0 /Lib/enum.py
parent6db1fd5fb8b2287cd4713c95f0df451e375c8853 (diff)
downloadcpython-e5754ab0c4ab44cd1e7e5484ce07e640964387dd.zip
cpython-e5754ab0c4ab44cd1e7e5484ce07e640964387dd.tar.gz
cpython-e5754ab0c4ab44cd1e7e5484ce07e640964387dd.tar.bz2
Close issue25147: use C implementation of OrderedDict
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 616b2ea..6284b9b 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -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']