summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorelie <elie>2005-10-26 21:30:03 +0000
committerelie <elie>2005-10-26 21:30:03 +0000
commit35079b9bcc2a31bcdeb24acd1a4552817a488443 (patch)
tree5cd7888229dc7370a643fead3791e1ed0ef51f92 /examples
parentc16f9271c31b8ccf7303fa87d49589a0c1f25a10 (diff)
downloadpysnmp-35079b9bcc2a31bcdeb24acd1a4552817a488443.tar.gz
format output
Diffstat (limited to 'examples')
-rw-r--r--examples/v1arch/manager/getgen.py2
-rw-r--r--examples/v1arch/manager/nextgen.py2
-rw-r--r--examples/v1arch/manager/ntfrcv.py2
-rw-r--r--examples/v1arch/manager/setgen.py2
-rw-r--r--examples/v3arch/manager/bulkgen.py2
-rw-r--r--examples/v3arch/manager/getgen.py2
-rw-r--r--examples/v3arch/manager/ntfrcv.py2
7 files changed, 7 insertions, 7 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
diff --git a/examples/v3arch/manager/bulkgen.py b/examples/v3arch/manager/bulkgen.py
index 1e2a4fe..7e39d5f 100644
--- a/examples/v3arch/manager/bulkgen.py
+++ b/examples/v3arch/manager/bulkgen.py
@@ -44,7 +44,7 @@ def cbFun(sendRequesthandle, errorIndication, errorStatus, errorIndex,
if val is None:
print oid.prettyPrint()
else:
- print '%s=%s' % (oid.prettyPrint(), val.prettyPrint())
+ print '%s = %s' % (oid.prettyPrint(), val.prettyPrint())
for oid, val in varBindTable[-1]:
if val is not None:
break
diff --git a/examples/v3arch/manager/getgen.py b/examples/v3arch/manager/getgen.py
index 51da752..cd6ec99 100644
--- a/examples/v3arch/manager/getgen.py
+++ b/examples/v3arch/manager/getgen.py
@@ -52,4 +52,4 @@ elif cbCtx['errorStatus']:
print cbCtx['errorStatus'].prettyPrint()
else:
for oid, val in cbCtx['varBinds']:
- print '%s=%s' % (oid.prettyPrint(), val.prettyPrint())
+ print '%s = %s' % (oid.prettyPrint(), val.prettyPrint())
diff --git a/examples/v3arch/manager/ntfrcv.py b/examples/v3arch/manager/ntfrcv.py
index 47c37da..dc1640f 100644
--- a/examples/v3arch/manager/ntfrcv.py
+++ b/examples/v3arch/manager/ntfrcv.py
@@ -34,7 +34,7 @@ def cbFun(snmpEngine,
contextEngineId, contextName
)
for name, val in varBinds:
- print '%s=%s' % (name.prettyPrint(), val.prettyPrint())
+ print '%s = %s' % (name.prettyPrint(), val.prettyPrint())
# Apps registration
ntfrcv.NotificationReceiver(snmpEngine, cbFun)