Skip to content

Commit 5e576f7

Browse files
authored
Merge pull request splunk#281 from bj8798/develop
Pull request for DVPL-7639 to treat the integer and long variables same
2 parents e168d65 + 8a40047 commit 5e576f7

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
@@ -583,7 +583,7 @@ def _write_record(self, record):
583583
value = str(value.real)
584584
elif value_t is six.text_type:
585585
value = value
586-
elif value_t is int or value_t is int or value_t is float or value_t is complex:
586+
elif isinstance(value, six.integer_types) or value_t is float or value_t is complex:
587587
value = str(value)
588588
elif issubclass(value_t, (dict, list, tuple)):
589589
value = str(''.join(RecordWriter._iterencode_json(value, 0)))
@@ -613,7 +613,7 @@ def _write_record(self, record):
613613
values += (value, None)
614614
continue
615615

616-
if value_t is int or value_t is int or value_t is float or value_t is complex:
616+
if isinstance(value, six.integer_types) or value_t is float or value_t is complex:
617617
values += (str(value), None)
618618
continue
619619

0 commit comments

Comments
 (0)