From 3e39a788868e21ac028b93f57d961228ef0eb81f Mon Sep 17 00:00:00 2001 From: Daniele Verducci Date: Mon, 26 Jan 2026 11:09:05 +0100 Subject: [PATCH] Fixed deprecated regexp escape sequence --- mddclient/mddclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mddclient/mddclient.py b/mddclient/mddclient.py index 4b8408e..1899bc9 100755 --- a/mddclient/mddclient.py +++ b/mddclient/mddclient.py @@ -52,9 +52,9 @@ VERSION = '0.2' DESCRIPTION = 'A DynamicDns client like ddclient, but supporting multiple (sub)domains' STATUS_FILE = '/tmp/mddclient.tmp' CHECKIP_REQUEST_ADDR = 'http://checkip.dyndns.org' -CHECKIP_RESPONSE_PARSER = 'Current IP Address: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})' +CHECKIP_RESPONSE_PARSER = r'Current IP Address: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})' DDCLIENT2_REQUEST_ADDR = "https://{}/nic/update?system=dyndns&hostname={}&myip={}" -DDCLIENT2_RESPONSE_PARSER = '^(nochg|no_change|good) (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})$' +DDCLIENT2_RESPONSE_PARSER = r'^(nochg|no_change|good) (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})$' USER_AGENT = 'Selfhost Utils Mddclient ' + VERSION class Main: