From 7770a5681dbe4fa6867684d38fcd5fb05d3babb9 Mon Sep 17 00:00:00 2001 From: Ben Pedigo Date: Thu, 5 Dec 2024 09:26:39 -0800 Subject: [PATCH] Use raw string notation in regex (#275) --- caveclient/jsonservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caveclient/jsonservice.py b/caveclient/jsonservice.py index c6a0f5d1..cf1aba63 100644 --- a/caveclient/jsonservice.py +++ b/caveclient/jsonservice.py @@ -233,7 +233,7 @@ def upload_state_json( ), ) handle_response(response, as_json=False) - response_re = re.search(".*\/(\d+)", str(response.content)) + response_re = re.search(r".*\/(\d+)", str(response.content)) return int(response_re.groups()[0]) @_check_version_compatibility(">=0.4.0") @@ -289,7 +289,7 @@ def upload_property_json( data=data, ) handle_response(response, as_json=False) - response_re = re.search(".*\/(\d+)", str(response.content)) + response_re = re.search(r".*\/(\d+)", str(response.content)) return int(response_re.groups()[0]) def save_state_json_local(