Skip to content

Commit 146d707

Browse files
adamchainzBenRKarl
authored andcommitted
Fix invalid escape sequences
1 parent 3b7229c commit 146d707

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/authentication/generate_user_credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def parse_raw_query_params(data):
161161
# Decode the request into a utf-8 encoded string
162162
decoded = data.decode("utf-8")
163163
# Use a regular expression to extract the URL query parameters string
164-
match = re.search("GET\s\/\?(.*) ", decoded)
164+
match = re.search(r"GET\s\/\?(.*) ", decoded)
165165
params = match.group(1)
166166
# Split the parameters to isolate the key/value pairs
167167
pairs = [pair.split("=") for pair in params.split("&")]

google/ads/googleads/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _validate_customer_id(customer_id, id_type):
206206
"""
207207
if customer_id is not None:
208208
# Checks that the string is comprised only of 10 digits.
209-
pattern = re.compile("^\d{10}", re.ASCII)
209+
pattern = re.compile(r"^\d{10}", re.ASCII)
210210
if not pattern.fullmatch(customer_id):
211211
raise ValueError(
212212
f"The specified {id_type} customer ID is invalid. It must be a "

0 commit comments

Comments
 (0)