diff options
author | elie <elie> | 2005-10-14 16:11:14 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-14 16:11:14 +0000 |
commit | 31831c0361e847a02df94cba36a8fb9bf9023ef5 (patch) | |
tree | 0f67dc186d48e41903fce6e340b97c0d11c7225c /examples/v1arch/asyncore | |
parent | a686f5442ec91df41c1d2a5dde1a046f09814784 (diff) | |
download | pysnmp-git-31831c0361e847a02df94cba36a8fb9bf9023ef5.tar.gz |
prettyOut() -> prettyPrinter()
Diffstat (limited to 'examples/v1arch/asyncore')
-rw-r--r-- | examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py | 4 | ||||
-rw-r--r-- | examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py | 4 |
2 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 59073419..25dbaf19 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py +++ b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.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/asyncore/manager/cmdgen/getnext-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py index 61fddf67..7de46090 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py +++ b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.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]: |