From 6f5bb03b2d095e701937ec2239d77cdd41c30744 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 6 May 2022 15:36:28 +0200 Subject: [PATCH] [fix] depreciation warning about unicode Co-authored-by: Alexandre Aubin --- src/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns.py b/src/dns.py index 89d76f5f1..0bee3d639 100644 --- a/src/dns.py +++ b/src/dns.py @@ -500,7 +500,7 @@ def _get_relative_name_for_dns_zone(domain, base_dns_zone): # foo.example.tld -> foo # .foo.example.tld -> foo # bar.foo.example.tld -> bar.foo - return re.sub("\.?" + base_dns_zone.replace(".", "\.") + "$", "", domain.strip(".")) or "@" + return re.sub(r"\.?" + base_dns_zone.replace(".", r"\.") + "$", "", domain.strip(".")) or "@" def _get_registrar_config_section(domain):