diff options
author | elie <elie> | 2010-07-07 16:00:20 +0000 |
---|---|---|
committer | elie <elie> | 2010-07-07 16:00:20 +0000 |
commit | 75588a83f563d7416bd1f5db86a1edb97eb5b3f0 (patch) | |
tree | 6513f12483e21b0ad2ab0aef6304b2ed81f4e7c3 | |
parent | 7f6dad0882e20d27b9696f554b2b2f3379c1cf13 (diff) | |
download | pysnmp-75588a83f563d7416bd1f5db86a1edb97eb5b3f0.tar.gz |
prettyPrint() values
-rw-r--r-- | examples/smi/backend.py | 2 | ||||
-rw-r--r-- | examples/smi/instrum.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/smi/backend.py b/examples/smi/backend.py index 9d2b38b..3260a5e 100644 --- a/examples/smi/backend.py +++ b/examples/smi/backend.py @@ -24,7 +24,7 @@ while 1: oid, val = mibInstrum.readNextVars(((oid, val),))[0] if exval.endOfMib.isSameTypeWith(val): break - print oid, val + print oid, val.prettyPrint() print 'Unloading MIB modules...', mibBuilder.unloadModules() diff --git a/examples/smi/instrum.py b/examples/smi/instrum.py index b1c2849..836a41e 100644 --- a/examples/smi/instrum.py +++ b/examples/smi/instrum.py @@ -47,4 +47,4 @@ if __name__ == '__main__': oid, val = mibInstrum.readNextVars(((oid, val),))[0] if exval.endOfMib.isSameTypeWith(val): break - print oid, val + print oid, val.prettyPrint() |