From 077ad19255a276312c5a4d32710fe58a9c3d534a Mon Sep 17 00:00:00 2001 From: Micha Horlboge Date: Mon, 11 Nov 2024 22:36:51 +0100 Subject: [PATCH] Use r string for regex --- fritz_temp_sync/fritzbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fritz_temp_sync/fritzbox.py b/fritz_temp_sync/fritzbox.py index 49262e9..36e1191 100755 --- a/fritz_temp_sync/fritzbox.py +++ b/fritz_temp_sync/fritzbox.py @@ -42,7 +42,7 @@ class FritzBox: logging.debug(f"Calculate v2 challenge: {challenge}") chall_regex = re.compile( - "2\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)") + r"2\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)\$(?P[0-9a-zA-Z]+)") chall_parts = chall_regex.match(challenge).groupdict() salt1: bytes = bytes.fromhex(chall_parts["salt1"])