diff --git a/edbob/pyramid/grids.py b/edbob/pyramid/grids.py index fa70cc0..5e13ca3 100644 --- a/edbob/pyramid/grids.py +++ b/edbob/pyramid/grids.py @@ -26,7 +26,10 @@ ``edbob.pyramid.grids`` -- Grid Tables """ -from collections import OrderedDict +try: + from collections import OrderedDict +except ImportError: + from ordereddict import OrderedDict from sqlalchemy.orm import Query diff --git a/setup.py b/setup.py index 1efca16..5fcea22 100644 --- a/setup.py +++ b/setup.py @@ -83,6 +83,7 @@ if sys.version_info < (2, 7): # package # low high 'argparse', # 1.2.1 + 'ordereddict', # 1.1 ]