summaryrefslogtreecommitdiff
path: root/pysnmp/proto/rfc1905.py
diff options
context:
space:
mode:
authorelie <elie>2010-11-18 17:43:48 +0000
committerelie <elie>2010-11-18 17:43:48 +0000
commit4c9bac929eb635188b25a3f2f3495d5312e2a199 (patch)
tree45b575877090ccea9945510e248674b710673d65 /pysnmp/proto/rfc1905.py
parentc06712e0321c304e7a07ae104076bd9309935eba (diff)
downloadpysnmp-git-4c9bac929eb635188b25a3f2f3495d5312e2a199.tar.gz
prettyPrint() takes an optional arg
Diffstat (limited to 'pysnmp/proto/rfc1905.py')
-rw-r--r--pysnmp/proto/rfc1905.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pysnmp/proto/rfc1905.py b/pysnmp/proto/rfc1905.py
index 4d65a9f1..b44aa5a8 100644
--- a/pysnmp/proto/rfc1905.py
+++ b/pysnmp/proto/rfc1905.py
@@ -10,21 +10,24 @@ class NoSuchObject(univ.Null):
tagSet = univ.Null.tagSet.tagImplicitly(
tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0x00)
)
- def prettyPrint(self): return 'No Such Object currently exists at this OID'
+ def prettyPrint(self, scope=0):
+ return 'No Such Object currently exists at this OID'
noSuchObject = NoSuchObject()
class NoSuchInstance(univ.Null):
tagSet = univ.Null.tagSet.tagImplicitly(
tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0x01)
)
- def prettyPrint(self): return 'No Such Instance currently exists at this OID'
+ def prettyPrint(self, scope=0):
+ return 'No Such Instance currently exists at this OID'
noSuchInstance = NoSuchInstance()
class EndOfMibView(univ.Null):
tagSet = univ.Null.tagSet.tagImplicitly(
tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0x02)
)
- def prettyPrint(self): return 'No more variables left in this MIB View'
+ def prettyPrint(self, scope=0):
+ return 'No more variables left in this MIB View'
endOfMibView = EndOfMibView()
# Made a separate class for better readability