Skip to content

Commit

Permalink
Use raw string notation in regex (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo authored Dec 5, 2024
1 parent ee23e83 commit c4c94fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caveclient/jsonservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit c4c94fc

Please sign in to comment.