From: kimbo Date: Sat, 27 Jul 2019 03:23:55 +0000 (-0400) Subject: allow alternate dots for root in dns.name.from_unicode X-Git-Tag: v2.0.0rc1~362^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44b13a6b4b1b2a1d4a3ff44cf377477fadc41dce;p=thirdparty%2Fdnspython.git allow alternate dots for root in dns.name.from_unicode --- diff --git a/dns/name.py b/dns/name.py index c580f5f8..0d45ac17 100644 --- a/dns/name.py +++ b/dns/name.py @@ -818,7 +818,7 @@ def from_unicode(text, origin=root, idna_codec=None): if text == '@': text = '' if text: - if text == '.': + if text in ['.', '\u3002', '\uff0e', '\uff61']: return Name([b'']) # no Unicode "u" on this constant! for c in text: if escaping: