Skip to content

Commit 6b151c3

Browse files
author
Bhargav Joshi
committed
Pull request for DVPL-7639 to treat the integer and long variables same
in both python versions
1 parent 6ff83e6 commit 6b151c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/searchcommands/internals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def _write_record(self, record):
580580
value = str(value.real)
581581
elif value_t is six.text_type:
582582
value = value
583-
elif value_t is int or value_t is int or value_t is float or value_t is complex:
583+
elif isinstance(value, six.integer_types) or value_t is float or value_t is complex:
584584
value = str(value)
585585
elif issubclass(value_t, (dict, list, tuple)):
586586
value = str(''.join(RecordWriter._iterencode_json(value, 0)))
@@ -610,7 +610,7 @@ def _write_record(self, record):
610610
values += (value, None)
611611
continue
612612

613-
if value_t is int or value_t is int or value_t is float or value_t is complex:
613+
if isinstance(value, six.integer_types) or value_t is float or value_t is complex:
614614
values += (str(value), None)
615615
continue
616616

0 commit comments

Comments
 (0)