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:
parent
c321ad46b0
commit
7054143701
13 changed files with 35 additions and 35 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue