From c254d73c52fa4668e0a6e47bc648d9b4ecc179a4 Mon Sep 17 00:00:00 2001 From: Ben Pedigo Date: Wed, 4 Dec 2024 15:47:44 -0800 Subject: [PATCH] add raw string notation --- 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(