diff options
author | elie <elie> | 2005-10-14 16:11:14 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-14 16:11:14 +0000 |
commit | 65b55a1e8a2cc2fa1721f434ed4f2e10981f3cc2 (patch) | |
tree | c811907b15de52f469167d8f0a0f8f2d1d9c3872 | |
parent | c38745184209c755bfb72bb8abd4f4b61fd1fddc (diff) | |
download | pysnmp-65b55a1e8a2cc2fa1721f434ed4f2e10981f3cc2.tar.gz |
prettyOut() -> prettyPrinter()
-rw-r--r-- | examples/v1arch/manager/getgen.py | 4 | ||||
-rw-r--r-- | examples/v1arch/manager/nextgen.py | 4 |
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]: |