summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
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']