Fix deprecation warnings due to invalid escape sequences. (#3273)

* Fix deprecation warnings due to invalid escape sequences.

* Fix linter error.
This commit is contained in:
Karthikeyan Singaravelan 2020-09-10 13:50:26 +05:30 committed by GitHub
commit 7054143701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 35 additions and 35 deletions

View file

@ -183,9 +183,9 @@ class EventsHandler(BaseResponse):
if sched_exp:
if not (
re.match("^cron\(.*\)", sched_exp)
re.match(r"^cron\(.*\)", sched_exp)
or re.match(
"^rate\(\d*\s(minute|minutes|hour|hours|day|days)\)", sched_exp
r"^rate\(\d*\s(minute|minutes|hour|hours|day|days)\)", sched_exp
)
):
return self.error(