add OrderedDict to util

This commit is contained in:
Lance Edgar 2012-09-28 07:41:39 -07:00
parent e0042f6fe5
commit d1514852e3

View file

@ -31,6 +31,13 @@ from pkg_resources import iter_entry_points
import edbob
# Import OrderedDict for the sake of other modules.
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
def entry_point_map(key):
"""
Convenience function to retrieve a dictionary of entry points, keyed by