File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1414
1515from inspect import getmembers , isclass , isfunction
1616from types import FunctionType , MethodType
17- from collections import OrderedDict
1817from json import JSONEncoder
1918
19+ try :
20+ from collections import OrderedDict # must be python 2.7
21+ except ImportError :
22+ from ordereddict import OrderedDict # must be python 2.6
23+
2024from .search_command_internals import ConfigurationSettingsType
2125from .validators import OptionName
2226
Original file line number Diff line number Diff line change 1515from __future__ import absolute_import
1616
1717# Absolute imports
18- from collections import OrderedDict
18+
19+ try :
20+ from collections import OrderedDict # python 2.7
21+ except ImportError :
22+ from ordereddict import OrderedDict # python 2.6
23+
1924from inspect import getmembers
2025from os import path
2126from sys import argv , stdin , stdout
2227
2328# Relative imports
29+
2430from . import csv , logging
2531from . decorators import Option
2632from . validators import Boolean , Fieldname
You can’t perform that action at this time.
0 commit comments