Skip to content

Commit 1a3b452

Browse files
Merge pull request #1 from chunks-hurry-0z/chunks-hurry-0z-patch-1
Update client.py
2 parents ab51ffc + 2520df7 commit 1a3b452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def get_api_version(self, path):
779779
# For example, "/services/search/jobs" is using API v1
780780
api_version = 1
781781

782-
versionSearch = re.search('(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path)
782+
versionSearch = re.search(r'(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path)
783783
if versionSearch:
784784
api_version = int(versionSearch.group(1))
785785

@@ -3999,4 +3999,4 @@ def batch_save(self, *documents):
39993999
data = json.dumps(documents)
40004000

40014001
return json.loads(
4002-
self._post('batch_save', headers=KVStoreCollectionData.JSON_HEADER, body=data).body.read().decode('utf-8'))
4002+
self._post('batch_save', headers=KVStoreCollectionData.JSON_HEADER, body=data).body.read().decode('utf-8'))

0 commit comments

Comments
 (0)