Skip to content

Commit ce732fc

Browse files
authored
Merge pull request #583 from AlexPetul/gh-582
Fix invalid escape sequence in get_api_version func
2 parents 1f3fa35 + 71c984c commit ce732fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/client.py

+1-1
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

0 commit comments

Comments
 (0)