Fixes an issue where we could reference a collections.OrderedDict on py2.6 where it's not available. Switching to the vendored ordereddict module

This commit is contained in:
Matthew Jones
2014-08-13 13:20:35 -04:00
parent 41a0f786ed
commit e0526a09e0

View File

@@ -1,7 +1,7 @@
# Copyright (c) 2014 Ansible, Inc. # Copyright (c) 2014 Ansible, Inc.
# All Rights Reserved. # All Rights Reserved.
import collections from ordereddict import OrderedDict
import copy import copy
import functools import functools
@@ -65,7 +65,7 @@ def paginated(method):
# Compile the results into a dictionary with pagination # Compile the results into a dictionary with pagination
# information. # information.
answer = collections.OrderedDict(( answer = OrderedDict((
('count', count), ('count', count),
('next', next_), ('next', next_),
('previous', prev), ('previous', prev),