summaryrefslogtreecommitdiff
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2015-09-17 22:55:40 -0700
committerEthan Furman <ethan@stoneleaf.us>2015-09-17 22:55:40 -0700
commit9bbaf4cf4713106e95ed88846df2334dad3c200d (patch)
treec40e50cf90eb12edbcb1dba1e7866ee5b8b75f1f /Lib/enum.py
parentabbee98073495a79cae579128a3c1da088bdbb00 (diff)
downloadcpython-9bbaf4cf4713106e95ed88846df2334dad3c200d.tar.gz
Issue 25147: add reason for using _collections
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 6284b9bb7e..8d04e2d718 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1,6 +1,7 @@
import sys
from types import MappingProxyType, DynamicClassAttribute
+# try _collections first to reduce startup cost
try:
from _collections import OrderedDict
except ImportError: