Previously, the string had an unrecognized escape sequence ('\*').
With a non-raw string we could have doubled the backslash, but it's
much cleaner to just use a raw string instead, (so that backslashes
are used for regular-expression escaping, and not also for string
escaping).
if not signature_verifier.is_valid_request(data, headers):
return make_response("invalid request", 403)
- match = re.match('^([0-9]+|\*) (.*)$', query)
+ match = re.match(r'^([0-9]+|\*) (.*)$', query)
if (match):
try:
count = int(match.group(1))