summaryrefslogtreecommitdiff
path: root/examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-03-30 23:29:55 +0200
committerIlya Etingof <etingof@gmail.com>2016-03-30 23:29:55 +0200
commit8e655f46e39b78290818345bb07e98dbe7b063b9 (patch)
treeb4053b17e0df7eac0b84a7f21314f24ded43ea95 /examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
parent39dac83818d73bdb78e47b005903a86966bd1f55 (diff)
downloadpysnmp-git-8e655f46e39b78290818345bb07e98dbe7b063b9.tar.gz
pep8 fixes
Diffstat (limited to 'examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py')
-rw-r--r--examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py b/examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
index 0c02b962..6c4e7adc 100644
--- a/examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
+++ b/examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
@@ -34,11 +34,8 @@ errorIndication, errorStatus, errorIndex, varBinds = next(
if errorIndication:
print(errorIndication)
elif errorStatus:
- print('%s at %s' % (
- errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1][0] or '?'
- )
- )
+ print('%s at %s' % (errorStatus.prettyPrint(),
+ errorIndex and varBinds[int(errorIndex) - 1][0] or '?'))
else:
for varBind in varBinds:
- print(' = '.join([ x.prettyPrint() for x in varBind ]))
+ print(' = '.join([x.prettyPrint() for x in varBind]))