diff options
author | Ilya Etingof <etingof@gmail.com> | 2016-06-12 14:07:24 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2016-06-12 14:07:24 +0200 |
commit | 91a1292067bfda55320f188eb1c8cce4af7a3266 (patch) | |
tree | c73fd39bf0eaf76207efdc6ed4ed191e50f31bf9 /pysnmp/entity/rfc3413 | |
parent | 912517cb2d79fddc512a1304c18a9b20cb20cf80 (diff) | |
download | pysnmp-git-91a1292067bfda55320f188eb1c8cce4af7a3266.tar.gz |
converted to new-style classes
Diffstat (limited to 'pysnmp/entity/rfc3413')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/context.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/ntforg.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/ntfrcv.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/oneliner/cmdgen.py | 4 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/oneliner/ntforg.py | 6 |
7 files changed, 10 insertions, 10 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index e174c379..8af6a644 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -40,7 +40,7 @@ def getNextVarBinds(varBinds, origVarBinds=None): return errorIndication, rspVarBinds -class CommandGenerator: +class CommandGenerator(object): _null = univ.Null('') def __init__(self): diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py index 60c64ad3..456d81bd 100644 --- a/pysnmp/entity/rfc3413/cmdrsp.py +++ b/pysnmp/entity/rfc3413/cmdrsp.py @@ -13,7 +13,7 @@ from pysnmp import debug # 3.2 -class CommandResponderBase: +class CommandResponderBase(object): acmID = 3 # default MIB access control method to use pduTypes = () diff --git a/pysnmp/entity/rfc3413/context.py b/pysnmp/entity/rfc3413/context.py index e0b73ef4..09039b04 100644 --- a/pysnmp/entity/rfc3413/context.py +++ b/pysnmp/entity/rfc3413/context.py @@ -10,7 +10,7 @@ from pysnmp import error from pysnmp import debug -class SnmpContext: +class SnmpContext(object): def __init__(self, snmpEngine, contextEngineId=None): snmpEngineId, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMP-FRAMEWORK-MIB', 'snmpEngineID') diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py index c9bd69c4..3001d207 100644 --- a/pysnmp/entity/rfc3413/ntforg.py +++ b/pysnmp/entity/rfc3413/ntforg.py @@ -18,7 +18,7 @@ from pysnmp import debug getNextHandle = nextid.Integer(0x7fffffff) -class NotificationOriginator: +class NotificationOriginator(object): acmID = 3 # default MIB access control method to use def __init__(self, snmpContext=None): diff --git a/pysnmp/entity/rfc3413/ntfrcv.py b/pysnmp/entity/rfc3413/ntfrcv.py index 55b2841c..1c9f2d41 100644 --- a/pysnmp/entity/rfc3413/ntfrcv.py +++ b/pysnmp/entity/rfc3413/ntfrcv.py @@ -13,7 +13,7 @@ from pysnmp import debug # 3.4 -class NotificationReceiver: +class NotificationReceiver(object): pduTypes = (v1.TrapPDU.tagSet, v2c.SNMPv2TrapPDU.tagSet, v2c.InformRequestPDU.tagSet) diff --git a/pysnmp/entity/rfc3413/oneliner/cmdgen.py b/pysnmp/entity/rfc3413/oneliner/cmdgen.py index 411fc40c..791c185d 100644 --- a/pysnmp/entity/rfc3413/oneliner/cmdgen.py +++ b/pysnmp/entity/rfc3413/oneliner/cmdgen.py @@ -19,7 +19,7 @@ __all__ = ['AsynCommandGenerator', 'CommandGenerator', 'MibVariable'] MibVariable = ObjectIdentity -class AsynCommandGenerator: +class AsynCommandGenerator(object): _null = univ.Null('') vbProcessor = CommandGeneratorVarBinds() @@ -160,7 +160,7 @@ class AsynCommandGenerator: asyncBulkCmd = bulkCmd -class CommandGenerator: +class CommandGenerator(object): _null = univ.Null('') def __init__(self, snmpEngine=None, asynCmdGen=None): diff --git a/pysnmp/entity/rfc3413/oneliner/ntforg.py b/pysnmp/entity/rfc3413/oneliner/ntforg.py index 2436b5ba..c6a140bb 100644 --- a/pysnmp/entity/rfc3413/oneliner/ntforg.py +++ b/pysnmp/entity/rfc3413/oneliner/ntforg.py @@ -22,7 +22,7 @@ __all__ = ['AsynNotificationOriginator', MibVariable = ObjectIdentity -class ErrorIndicationReturn: +class ErrorIndicationReturn(object): def __init__(self, *vars): self.__vars = vars @@ -39,7 +39,7 @@ class ErrorIndicationReturn: return str(self.__vars[0]) -class AsynNotificationOriginator: +class AsynNotificationOriginator(object): vbProcessor = NotificationOriginatorVarBinds() lcd = NotificationOriginatorLcdConfigurator() @@ -137,7 +137,7 @@ class AsynNotificationOriginator: asyncSendNotification = sendNotification -class NotificationOriginator: +class NotificationOriginator(object): vbProcessor = NotificationOriginatorVarBinds() def __init__(self, snmpEngine=None, snmpContext=None, asynNtfOrg=None): |