mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -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.
|
||||
# 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),
|
||||
|
||||
Reference in New Issue
Block a user