Skip to content

Commit

Permalink
Release 1.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ljiang1 committed Oct 2, 2019
2 parents cd268aa + 078daf8 commit 65729d6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/searchcommands_app/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
url='http://github.com/splunk/splunk-sdk-python',
Expand Down
2 changes: 1 addition & 1 deletion splunklib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
2 changes: 1 addition & 1 deletion splunklib/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions splunklib/searchcommands/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 65729d6

Please sign in to comment.