summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2005-10-14 16:11:14 +0000
committerelie <elie>2005-10-14 16:11:14 +0000
commit65b55a1e8a2cc2fa1721f434ed4f2e10981f3cc2 (patch)
treec811907b15de52f469167d8f0a0f8f2d1d9c3872
parentc38745184209c755bfb72bb8abd4f4b61fd1fddc (diff)
downloadpysnmp-65b55a1e8a2cc2fa1721f434ed4f2e10981f3cc2.tar.gz
prettyOut() -> prettyPrinter()
-rw-r--r--examples/v1arch/manager/getgen.py4
-rw-r--r--examples/v1arch/manager/nextgen.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/manager/getgen.py b/examples/v1arch/manager/getgen.py
index 5907341..25dbaf1 100644
--- a/examples/v1arch/manager/getgen.py
+++ b/examples/v1arch/manager/getgen.py
@@ -36,10 +36,10 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
# Check for SNMP errors reported
errorStatus = pMod.apiPDU.getErrorStatus(rspPDU)
if errorStatus:
- print errorStatus.prettyOut(errorStatus)
+ print errorStatus.prettyPrint()
else:
for oid, val in pMod.apiPDU.getVarBinds(rspPDU):
- print oid, val.prettyOut(val)
+ print oid.prettyPrint(), val.prettyPrint()
transportDispatcher.jobFinished(1)
return wholeMsg
diff --git a/examples/v1arch/manager/nextgen.py b/examples/v1arch/manager/nextgen.py
index 61fddf6..7de4609 100644
--- a/examples/v1arch/manager/nextgen.py
+++ b/examples/v1arch/manager/nextgen.py
@@ -48,8 +48,8 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
for name, val in tableRow:
if val is None:
continue
- print 'from: %s, %s = %s' % (
- transportAddress, name.prettyOut(name), val.prettyOut(val)
+ print 'from: %s, %s=%s' % (
+ transportAddress, name.prettyPrint(), val.prettyPrint()
)
# Stop on EOM
for oid, val in varBindTable[-1]: