summaryrefslogtreecommitdiff
path: root/pysnmp/carrier
diff options
context:
space:
mode:
authorelie <elie>2012-07-03 10:37:32 +0000
committerelie <elie>2012-07-03 10:37:32 +0000
commite98ca93260ec7e70e967a9051feea4f61375d57d (patch)
tree9b7b94366ae56683214612ad23b637fc00fa7917 /pysnmp/carrier
parentf9d4946d344a2796ce41af7a105c66e8807ad219 (diff)
downloadpysnmp-e98ca93260ec7e70e967a9051feea4f61375d57d.tar.gz
the condition of missing UNIX domain sockets is now handled in the same way
as missing IPv6
Diffstat (limited to 'pysnmp/carrier')
-rw-r--r--pysnmp/carrier/asynsock/dgram/unix.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pysnmp/carrier/asynsock/dgram/unix.py b/pysnmp/carrier/asynsock/dgram/unix.py
index 267f87d..1645a14 100644
--- a/pysnmp/carrier/asynsock/dgram/unix.py
+++ b/pysnmp/carrier/asynsock/dgram/unix.py
@@ -1,6 +1,9 @@
# Implements asyncore-based UNIX transport domain
from os import remove, tmpnam
-from socket import AF_UNIX
+try:
+ from socket import AF_UNIX
+except ImportError:
+ AF_UNIX = None
from pysnmp.carrier.asynsock.dgram.base import DgramSocketTransport
domainName = snmpLocalDomain = (1, 3, 6, 1, 2, 1, 100, 1, 13)