summaryrefslogtreecommitdiff
path: root/pysnmp/carrier
diff options
context:
space:
mode:
authorelie <elie>2015-09-27 10:26:25 +0000
committerelie <elie>2015-09-27 10:26:25 +0000
commit5d5673dfcd01a77755c4e4d7897d4c58bf3f2d97 (patch)
treec3d1807de3ae24ca920c092102e9952bb915546d /pysnmp/carrier
parente7d5f9130ba9312c3d936bed4c11ed094b24bc7c (diff)
downloadpysnmp-git-5d5673dfcd01a77755c4e4d7897d4c58bf3f2d97.tar.gz
* Asyncore and asyncio-based APIs reworked to become functions.
* Asyncio and Twisted API moved entirely into high-level domain to be aligned with other high-level APIs. This WILL BREAK backward compatibility for those apps that use Twisted API.
Diffstat (limited to 'pysnmp/carrier')
-rw-r--r--pysnmp/carrier/twisted/dgram/udp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pysnmp/carrier/twisted/dgram/udp.py b/pysnmp/carrier/twisted/dgram/udp.py
index d90d93bf..82e2d2b6 100644
--- a/pysnmp/carrier/twisted/dgram/udp.py
+++ b/pysnmp/carrier/twisted/dgram/udp.py
@@ -14,14 +14,16 @@ class UdpTwistedTransport(DgramTwistedTransport):
# AbstractTwistedTransport API
- def openClientMode(self, iface=('', 0)):
+ def openClientMode(self, iface=None):
+ if iface is None:
+ iface = ('', 0)
try:
self._lport = reactor.listenUDP(iface[1], self, iface[0])
except Exception:
raise error.CarrierError(sys.exc_info()[1])
return self
- def openServerMode(self, iface=('', 161)):
+ def openServerMode(self, iface):
try:
self._lport = reactor.listenUDP(iface[1], self, iface[0])
except Exception: