Skip to content

Commit 65729d6

Browse files
committed
Release 1.6.10
2 parents cd268aa + 078daf8 commit 65729d6

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Splunk SDK for Python Changelog
22

3+
## Version 1.6.10
4+
5+
### Bug Fix
6+
7+
* Fix long type gets wrong values on windows for python 2
8+
39
## Version 1.6.9
410

511
### Bug Fix

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# The Splunk Software Development Kit for Python
55

6-
#### Version 1.6.8
6+
#### Version 1.6.10
77

88
The Splunk Software Development Kit (SDK) for Python contains library code and
99
examples designed to enable developers to build applications using Splunk.

examples/searchcommands_app/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def run(self):
439439
setup(
440440
description='Custom Search Command examples',
441441
name=os.path.basename(project_dir),
442-
version='1.6.9',
442+
version='1.6.10',
443443
author='Splunk, Inc.',
444444
author_email='[email protected]',
445445
url='http://github.com/splunk/splunk-sdk-python',

splunklib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
from __future__ import absolute_import
1818
from splunklib.six.moves import map
19-
__version_info__ = (1, 6, 9)
19+
__version_info__ = (1, 6, 10)
2020
__version__ = ".".join(map(str, __version_info__))

splunklib/binding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ def request(url, message, **kwargs):
13691369
head = {
13701370
"Content-Length": str(len(body)),
13711371
"Host": host,
1372-
"User-Agent": "splunk-sdk-python/1.6.9",
1372+
"User-Agent": "splunk-sdk-python/1.6.10",
13731373
"Accept": "*/*",
13741374
"Connection": "Close",
13751375
} # defaults

splunklib/searchcommands/internals.py

+2-2
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)