diff --git a/splunklib/client.py b/splunklib/client.py index 48861880..d0aa74bd 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -769,7 +769,7 @@ def get_api_version(self, path): # For example, "/services/search/jobs" is using API v1 api_version = 1 - versionSearch = re.search('(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path) + versionSearch = re.search(r'(?:servicesNS\/[^/]+\/[^/]+|services)\/[^/]+\/v(\d+)\/', path) if versionSearch: api_version = int(versionSearch.group(1))