JordanMilne / Advocate

@@ -1,3 +1,4 @@
Loading
1 +
import ipaddress
1 2
import socket
2 3
from socket import timeout as SocketTimeout
3 4
@@ -8,7 +9,6 @@
Loading
8 9
9 10
from . import addrvalidator
10 11
from .exceptions import UnacceptableAddressException
11 -
from .packages import ipaddress
12 12
13 13
14 14
def advocate_getaddrinfo(host, port, get_canonname=False):

@@ -1,12 +1,12 @@
Loading
1 1
import functools
2 2
import fnmatch
3 +
import ipaddress
3 4
import re
4 5
import six
5 6
6 7
import netifaces
7 8
8 9
from .exceptions import NameserverException
9 -
from .packages import ipaddress
10 10
11 11
12 12
def canonicalize_hostname(hostname):
Files Coverage
advocate 95.48%
Project Totals (9 files) 95.48%
122.19
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.18
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.21
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.20
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.23
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.22
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.25
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.24
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.27
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.26
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
122.9
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.8
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.10
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.11
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.13
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.12
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.15
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.14
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
122.17
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
122.28
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux