Skip to content

Commit acf7cc5

Browse files
author
Shakeel Mohamed
committed
Fixup imports
1 parent 64d3d81 commit acf7cc5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

splunklib/searchcommands/search_command.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020

2121
from splunklib.client import Service
2222

23-
try:
24-
__named_tuple_check = namedtuple
25-
except NameError:
26-
from collections import namedtuple
23+
24+
from collections import namedtuple
2725
try:
2826
from collections import OrderedDict # must be python 2.7
2927
except ImportError:

tests/searchcommands/test_internals_v2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
from collections import OrderedDict # must be python 2.7
2424
except ImportError:
2525
from splunklib.ordereddict import OrderedDict
26-
try:
27-
__named_tuple_check = namedtuple
28-
except NameError:
29-
# for Python 2.6
30-
from collections import namedtuple
26+
from collections import namedtuple, deque
3127
from cStringIO import StringIO
3228
from functools import wraps
3329
from glob import iglob

0 commit comments

Comments
 (0)