diff options
author | Ilya Etingof <etingof@gmail.com> | 2016-03-30 23:29:55 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2016-03-30 23:29:55 +0200 |
commit | 8e655f46e39b78290818345bb07e98dbe7b063b9 (patch) | |
tree | b4053b17e0df7eac0b84a7f21314f24ded43ea95 /examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py | |
parent | 39dac83818d73bdb78e47b005903a86966bd1f55 (diff) | |
download | pysnmp-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.py | 9 |
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])) |