From 5a07892bfc58472c1b651f66deaf03176bfe79df Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 16 Oct 2016 20:56:46 -0700 Subject: py2--: inline type info --- netlib/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'netlib/utils.py') diff --git a/netlib/utils.py b/netlib/utils.py index 0deb7c82..8a8b15ea 100644 --- a/netlib/utils.py +++ b/netlib/utils.py @@ -79,8 +79,7 @@ class Data(object): _label_valid = re.compile(b"(?!-)[A-Z\d-]{1,63}(? bool +def is_valid_host(host: bytes) -> bool: """ Checks if a hostname is valid. """ -- cgit v1.2.3