mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
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:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user