diff options
author | elie <elie> | 2005-10-26 21:30:03 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-26 21:30:03 +0000 |
commit | 35079b9bcc2a31bcdeb24acd1a4552817a488443 (patch) | |
tree | 5cd7888229dc7370a643fead3791e1ed0ef51f92 /examples/v1arch | |
parent | c16f9271c31b8ccf7303fa87d49589a0c1f25a10 (diff) | |
download | pysnmp-35079b9bcc2a31bcdeb24acd1a4552817a488443.tar.gz |
format output
Diffstat (limited to 'examples/v1arch')
-rw-r--r-- | examples/v1arch/manager/getgen.py | 2 | ||||
-rw-r--r-- | examples/v1arch/manager/nextgen.py | 2 | ||||
-rw-r--r-- | examples/v1arch/manager/ntfrcv.py | 2 | ||||
-rw-r--r-- | examples/v1arch/manager/setgen.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/manager/getgen.py b/examples/v1arch/manager/getgen.py index 25dbaf1..92022ee 100644 --- a/examples/v1arch/manager/getgen.py +++ b/examples/v1arch/manager/getgen.py @@ -39,7 +39,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, print errorStatus.prettyPrint() else: for oid, val in pMod.apiPDU.getVarBinds(rspPDU): - print oid.prettyPrint(), val.prettyPrint() + print '%s = %s' % (oid.prettyPrint(), val.prettyPrint()) transportDispatcher.jobFinished(1) return wholeMsg diff --git a/examples/v1arch/manager/nextgen.py b/examples/v1arch/manager/nextgen.py index 7de4609..e00be27 100644 --- a/examples/v1arch/manager/nextgen.py +++ b/examples/v1arch/manager/nextgen.py @@ -48,7 +48,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, for name, val in tableRow: if val is None: continue - print 'from: %s, %s=%s' % ( + print 'from: %s, %s = %s' % ( transportAddress, name.prettyPrint(), val.prettyPrint() ) # Stop on EOM diff --git a/examples/v1arch/manager/ntfrcv.py b/examples/v1arch/manager/ntfrcv.py index a8c4c64..f968ed3 100644 --- a/examples/v1arch/manager/ntfrcv.py +++ b/examples/v1arch/manager/ntfrcv.py @@ -41,7 +41,7 @@ def cbFun(transportDispatcher, transportDomain, transportAddress, wholeMsg): varBinds = pMod.apiPDU.getVarBindList(reqPDU) print 'Var-binds:' for oid, val in varBinds: - print oid.prettyPrint(), val.prettyPrint() + print '%s = %s' % (oid.prettyPrint(), val.prettyPrint()) return wholeMsg transportDispatcher = AsynsockDispatcher() diff --git a/examples/v1arch/manager/setgen.py b/examples/v1arch/manager/setgen.py index f6eb053..bbbc50f 100644 --- a/examples/v1arch/manager/setgen.py +++ b/examples/v1arch/manager/setgen.py @@ -41,7 +41,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, print errorStatus.prettyPrint() else: for oid, val in pMod.apiPDU.getVarBinds(rspPDU): - print oid.prettyPrint(), val.prettyPrint() + print '%s = %s' (oid.prettyPrint(), val.prettyPrint()) transportDispatcher.jobFinished(1) return wholeMsg |