Skip to content

Commit edc1315

Browse files
author
David Noble
committed
Python 2.6 compatibility fix
We'll test this in the context of Jenkins Signed-off-by: David Noble <[email protected]>
1 parent 3de3f7f commit edc1315

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

splunklib/searchcommands/search_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def convert_value(field, value):
186186

187187
if field == 'countMap':
188188
split = value.split(';')
189-
value = {k: int(v) for k, v in zip(split[0::2], split[1::2])}
189+
value = dict((key, int(value))
190+
for key, value in zip(split[0::2], split[1::2]))
190191
elif field == 'vix_families':
191192
value = ElementTree.fromstring(value)
192193
elif value == '':

0 commit comments

Comments
 (0)