diff --git a/CHANGELOG.md b/CHANGELOG.md index 3625b9f1b..a87083885 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Splunk SDK for Python Changelog +## Version 1.6.10 + +### Bug Fix + +* Fix long type gets wrong values on windows for python 2 + ## Version 1.6.9 ### Bug Fix diff --git a/README.md b/README.md index c5d012aef..5ca083dd4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # The Splunk Software Development Kit for Python -#### Version 1.6.8 +#### Version 1.6.10 The Splunk Software Development Kit (SDK) for Python contains library code and examples designed to enable developers to build applications using Splunk. diff --git a/examples/searchcommands_app/setup.py b/examples/searchcommands_app/setup.py index 63966bf42..170949978 100755 --- a/examples/searchcommands_app/setup.py +++ b/examples/searchcommands_app/setup.py @@ -439,7 +439,7 @@ def run(self): setup( description='Custom Search Command examples', name=os.path.basename(project_dir), - version='1.6.9', + version='1.6.10', author='Splunk, Inc.', author_email='devinfo@splunk.com', url='http://github.com/splunk/splunk-sdk-python', diff --git a/splunklib/__init__.py b/splunklib/__init__.py index fcf811881..9b7cc5f26 100644 --- a/splunklib/__init__.py +++ b/splunklib/__init__.py @@ -16,5 +16,5 @@ from __future__ import absolute_import from splunklib.six.moves import map -__version_info__ = (1, 6, 9) +__version_info__ = (1, 6, 10) __version__ = ".".join(map(str, __version_info__)) diff --git a/splunklib/binding.py b/splunklib/binding.py index 36a7f1080..1cd2017e8 100644 --- a/splunklib/binding.py +++ b/splunklib/binding.py @@ -1369,7 +1369,7 @@ def request(url, message, **kwargs): head = { "Content-Length": str(len(body)), "Host": host, - "User-Agent": "splunk-sdk-python/1.6.9", + "User-Agent": "splunk-sdk-python/1.6.10", "Accept": "*/*", "Connection": "Close", } # defaults diff --git a/splunklib/searchcommands/internals.py b/splunklib/searchcommands/internals.py index 8af06ccb6..2f22cfe40 100644 --- a/splunklib/searchcommands/internals.py +++ b/splunklib/searchcommands/internals.py @@ -583,7 +583,7 @@ def _write_record(self, record): value = str(value.real) elif value_t is six.text_type: value = value - elif value_t is int or value_t is int or value_t is float or value_t is complex: + elif isinstance(value, six.integer_types) or value_t is float or value_t is complex: value = str(value) elif issubclass(value_t, (dict, list, tuple)): value = str(''.join(RecordWriter._iterencode_json(value, 0))) @@ -613,7 +613,7 @@ def _write_record(self, record): values += (value, None) continue - if value_t is int or value_t is int or value_t is float or value_t is complex: + if isinstance(value, six.integer_types) or value_t is float or value_t is complex: values += (str(value), None) continue