diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-10-18 12:34:54 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-10-19 00:40:56 +0200 |
commit | 7a3a504d54316911b40f1ebff2252cbbf23c21a8 (patch) | |
tree | 1ff09c3fbadea9241bebbd85936e29437514d25f /pysnmp/proto | |
parent | fff063aba993cab2ebe26cc416a4d2df3bc43a28 (diff) | |
download | pysnmp-git-7a3a504d54316911b40f1ebff2252cbbf23c21a8.tar.gz |
make sure to pass an initializer to ASN.1 Null()-based objects
Diffstat (limited to 'pysnmp/proto')
-rw-r--r-- | pysnmp/proto/rfc1905.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/proto/rfc1905.py b/pysnmp/proto/rfc1905.py index 8ba2172a..a72f8dc5 100644 --- a/pysnmp/proto/rfc1905.py +++ b/pysnmp/proto/rfc1905.py @@ -31,7 +31,7 @@ class NoSuchObject(univ.Null): return 'No Such Object currently exists at this OID' -noSuchObject = NoSuchObject() +noSuchObject = NoSuchObject('') class NoSuchInstance(univ.Null): @@ -43,7 +43,7 @@ class NoSuchInstance(univ.Null): return 'No Such Instance currently exists at this OID' -noSuchInstance = NoSuchInstance() +noSuchInstance = NoSuchInstance('') class EndOfMibView(univ.Null): @@ -55,7 +55,7 @@ class EndOfMibView(univ.Null): return 'No more variables left in this MIB View' -endOfMibView = EndOfMibView() +endOfMibView = EndOfMibView('') # Made a separate class for better readability |