summaryrefslogtreecommitdiff
path: root/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py')
-rw-r--r--pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
index e4ece3d..d40efb2 100644
--- a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
+++ b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
@@ -4,9 +4,10 @@
from pyasn1.compat.octets import int2oct, oct2int
from pysnmp import error
+from pysnmp.carrier import sockfix
import socket
-has_ipv6 = socket.has_ipv6 and hasattr(socket, 'AF_INET6')
+has_ipv6 = socket.has_ipv6
if hasattr(socket, 'inet_ntop') and hasattr(socket, 'inet_pton'):
inet_ntop = socket.inet_ntop