add OrderedDict to util
This commit is contained in:
parent
e0042f6fe5
commit
d1514852e3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue