mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] depreciation warning about unicode
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
76661a3e6c
commit
6f5bb03b2d
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue