summaryrefslogtreecommitdiff
path: root/examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py')
-rw-r--r--examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py b/examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py
index 042c8e33..92317cac 100644
--- a/examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py
+++ b/examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py
@@ -22,7 +22,9 @@ from twisted.internet.task import react
from pysnmp.hlapi.twisted import *
-def success((errorStatus, errorIndex, varBinds), hostname):
+def success(args, hostname):
+ (errorStatus, errorIndex, varBindTable) = args
+
if errorStatus:
print('%s: %s at %s' % (hostname,
errorStatus.prettyPrint(),