summaryrefslogtreecommitdiff
path: root/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-05-27 09:01:56 +0200
committerIlya Etingof <etingof@gmail.com>2017-05-27 09:01:56 +0200
commitc196de621f8e88faa7b8b9fe1ec43cfdd9687576 (patch)
tree9f7bde8874571d9c3d1bf9bd6b703e55301a3298 /examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
parent72759c534ce3546c1a8f50321d29cf1d587ce7df (diff)
downloadpysnmp-git-c196de621f8e88faa7b8b9fe1ec43cfdd9687576.tar.gz
minor pep8 improvements
Diffstat (limited to 'examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py')
-rw-r--r--examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
index 027d3ac6..74cedeea 100644
--- a/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
+++ b/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
@@ -29,8 +29,10 @@ from pysnmp.hlapi.asyncio import *
@asyncio.coroutine
def sendone(snmpEngine, hostname, notifyType):
- errorIndication, errorStatus, \
- errorIndex, varBinds = yield from sendNotification(
+ (errorIndication,
+ errorStatus,
+ errorIndex,
+ varBinds) = yield from sendNotification(
snmpEngine,
CommunityData('public', tag=hostname),
UdpTransportTarget((hostname, 162), tagList=hostname),