]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
allow alternate dots for root in dns.name.from_unicode
authorkimbo <kimballleavitt@gmail.com>
Sat, 27 Jul 2019 03:23:55 +0000 (23:23 -0400)
committerkimbo <kimballleavitt@gmail.com>
Sat, 27 Jul 2019 03:23:55 +0000 (23:23 -0400)
dns/name.py

index c580f5f8b34e95be7102b60c3ced67dbd64c808a..0d45ac17f105f4ab203321a7c19ff2defebff844 100644 (file)
@@ -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: