Skip to content

Commit 71c984c

Browse files
author
Alexey Petul
committed
Fix invalid escape sequence in get_api_version func
1 parent ba04e1b commit 71c984c

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
@@ -769,7 +769,7 @@ def get_api_version(self, path):
769769
# For example, "/services/search/jobs" is using API v1
770770
api_version = 1
771771

772-
versionSearch = re.search('(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path)
772+
versionSearch = re.search(r'(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path)
773773
if versionSearch:
774774
api_version = int(versionSearch.group(1))
775775

0 commit comments

Comments
 (0)