diff options
author | elie <elie> | 2005-10-26 21:30:03 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-26 21:30:03 +0000 |
commit | 627cab2ce39c4266a570f2b17f3076c6d3d1a96c (patch) | |
tree | 01f46767ff10c065f120bfd98a57e29b6c0f6f01 /examples/v1arch/asyncore | |
parent | 002972241ed483b2bdc0697c059f12d1e7ef59c2 (diff) | |
download | pysnmp-git-627cab2ce39c4266a570f2b17f3076c6d3d1a96c.tar.gz |
format output
Diffstat (limited to 'examples/v1arch/asyncore')
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py index 25dbaf19..92022eed 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py +++ b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.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/asyncore/manager/cmdgen/getnext-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py index 7de46090..e00be278 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py +++ b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.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/asyncore/manager/cmdgen/v2c-set.py b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py index f6eb0539..bbbc50fe 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py +++ b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.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 diff --git a/examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py b/examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py index a8c4c643..f968ed3b 100644 --- a/examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py +++ b/examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.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() |