summaryrefslogtreecommitdiff
path: root/pysnmp/carrier
diff options
context:
space:
mode:
authorelie <elie>2015-10-17 19:14:29 +0000
committerelie <elie>2015-10-17 19:14:29 +0000
commit9e73d5b89c6121437b92f02482b4423ab526b51a (patch)
tree84e69ffdabad2f8b71dcdceac03234d26ba08c28 /pysnmp/carrier
parent7ebcb3d0c1ce6b7722bf7b06b4826d27c2fa487b (diff)
downloadpysnmp-git-9e73d5b89c6121437b92f02482b4423ab526b51a.tar.gz
linted the bad-continuation issue as well as some others
Diffstat (limited to 'pysnmp/carrier')
-rw-r--r--pysnmp/carrier/asyncio/dgram/udp6.py15
-rw-r--r--pysnmp/carrier/asyncio/dispatch.py6
-rw-r--r--pysnmp/carrier/asyncore/dgram/udp6.py5
3 files changed, 10 insertions, 16 deletions
diff --git a/pysnmp/carrier/asyncio/dgram/udp6.py b/pysnmp/carrier/asyncio/dgram/udp6.py
index 7c92716f..b80187d2 100644
--- a/pysnmp/carrier/asyncio/dgram/udp6.py
+++ b/pysnmp/carrier/asyncio/dgram/udp6.py
@@ -19,15 +19,12 @@ class Udp6AsyncioTransport(DgramAsyncioProtocol):
def normalizeAddress(self, transportAddress):
if '%' in transportAddress[0]: # strip zone ID
- return self.addressType(
- (transportAddress[0].split('%')[0],
- transportAddress[1],
- 0, # flowinfo
- 0) # scopeid
- )
+ return self.addressType((transportAddress[0].split('%')[0],
+ transportAddress[1],
+ 0, # flowinfo
+ 0)) # scopeid
else:
- return self.addressType(
- (transportAddress[0], transportAddress[1], 0, 0)
- )
+ return self.addressType((transportAddress[0],
+ transportAddress[1], 0, 0))
Udp6Transport = Udp6AsyncioTransport
diff --git a/pysnmp/carrier/asyncio/dispatch.py b/pysnmp/carrier/asyncio/dispatch.py
index ca96683e..4bc54b62 100644
--- a/pysnmp/carrier/asyncio/dispatch.py
+++ b/pysnmp/carrier/asyncio/dispatch.py
@@ -81,14 +81,12 @@ class AsyncioDispatcher(AbstractTransportDispatcher):
# Trollius or Tulip?
if not hasattr(asyncio, "From"):
- exec(
-"""\
+ exec("""\
@asyncio.coroutine
def handle_timeout(self):
while True:
yield from asyncio.sleep(self.getTimerResolution())
self.handleTimerTick(loop.time())
AsyncioDispatcher.handle_timeout = handle_timeout\
-"""
- )
+""")
diff --git a/pysnmp/carrier/asyncore/dgram/udp6.py b/pysnmp/carrier/asyncore/dgram/udp6.py
index 28ba1540..c6a69c0a 100644
--- a/pysnmp/carrier/asyncore/dgram/udp6.py
+++ b/pysnmp/carrier/asyncore/dgram/udp6.py
@@ -20,9 +20,8 @@ class Udp6SocketTransport(DgramSocketTransport):
0, # flowinfo
0)) # scopeid
else:
- ta = self.addressType(
- (transportAddress[0], transportAddress[1], 0, 0)
- )
+ ta = self.addressType((transportAddress[0],
+ transportAddress[1], 0, 0))
if isinstance(transportAddress, self.addressType) and \
transportAddress.getLocalAddress():