Skip to content

Commit 7a3a504

Browse files
committed
make sure to pass an initializer to ASN.1 Null()-based objects
1 parent fff063a commit 7a3a504

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pysnmp/proto/rfc1905.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def prettyPrint(self, scope=0):
3131
return 'No Such Object currently exists at this OID'
3232

3333

34-
noSuchObject = NoSuchObject()
34+
noSuchObject = NoSuchObject('')
3535

3636

3737
class NoSuchInstance(univ.Null):
@@ -43,7 +43,7 @@ def prettyPrint(self, scope=0):
4343
return 'No Such Instance currently exists at this OID'
4444

4545

46-
noSuchInstance = NoSuchInstance()
46+
noSuchInstance = NoSuchInstance('')
4747

4848

4949
class EndOfMibView(univ.Null):
@@ -55,7 +55,7 @@ def prettyPrint(self, scope=0):
5555
return 'No more variables left in this MIB View'
5656

5757

58-
endOfMibView = EndOfMibView()
58+
endOfMibView = EndOfMibView('')
5959

6060

6161
# Made a separate class for better readability

0 commit comments

Comments
 (0)