From 40155ede22260ec19ff0c747a88cbcb490cd6b00 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 9 Jan 2022 14:10:15 +0100 Subject: [PATCH] Fix syntax DeprecationWarning. --- src/utils/time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/time.py b/src/utils/time.py index 0dcbb3b27..542e50019 100644 --- a/src/utils/time.py +++ b/src/utils/time.py @@ -41,7 +41,7 @@ try: except ImportError: pytz = None -_IANA_TZ_RE = re.compile("([\w_-]+/)*[\w_-]+") +_IANA_TZ_RE = re.compile(r"([\w_-]+/)*[\w_-]+") class TimezoneException(Exception): pass