diff --git a/edbob/util.py b/edbob/util.py index ef4be0c..f11c8b1 100644 --- a/edbob/util.py +++ b/edbob/util.py @@ -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