Skip to content

Commit 593113e

Browse files
committed
client: use six.string_types instead of basestring
Which is gone on modern python.
1 parent 93cbf44 commit 593113e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3591,7 +3591,7 @@ def update_index(self, name, value):
35913591
:return: Result of POST request
35923592
"""
35933593
kwargs = {}
3594-
kwargs['index.' + name] = value if isinstance(value, basestring) else json.dumps(value)
3594+
kwargs['index.' + name] = value if isinstance(value, six.string_types) else json.dumps(value)
35953595
return self.post(**kwargs)
35963596

35973597
def update_field(self, name, value):

0 commit comments

Comments
 (0)