From e0526a09e0097961df56861f292f2f89af525241 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 13 Aug 2014 13:20:35 -0400 Subject: [PATCH] Fixes an issue where we could reference a collections.OrderedDict on py2.6 where it's not available. Switching to the vendored ordereddict module --- awx/api/utils/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/utils/decorators.py b/awx/api/utils/decorators.py index bbaa20e828..c0190ad67d 100644 --- a/awx/api/utils/decorators.py +++ b/awx/api/utils/decorators.py @@ -1,7 +1,7 @@ # Copyright (c) 2014 Ansible, Inc. # All Rights Reserved. -import collections +from ordereddict import OrderedDict import copy import functools @@ -65,7 +65,7 @@ def paginated(method): # Compile the results into a dictionary with pagination # information. - answer = collections.OrderedDict(( + answer = OrderedDict(( ('count', count), ('next', next_), ('previous', prev),