Commits

Anonymous committed 514ae39

__context -> snmpContext for clarity

  • Participants
  • Parent commits f4876f3

Comments (0)

Files changed (1)

File pysnmp/entity/rfc3413/ntforg.py

     def __init__(self, snmpContext):
         self.__pendingReqs = {}
         self.__pendingNotifications = {}
-        self.__context = snmpContext
+        self.snmpContext = snmpContext
 
     def processResponsePdu(
         self,
 
         debug.logger & debug.flagApp and debug.logger('sendNotification: metaSendPduHandle %s, notifyTag %s, notifyType %s' % (metaSendPduHandle, notifyTag, notifyType))
                 
-        contextMibInstrumCtl = self.__context.getMibInstrum(
-            contextName
-            )
+        contextMibInstrumCtl = self.snmpContext.getMibInstrum(contextName)
         
         for targetAddrName in config.getTargetNames(snmpEngine, notifyTag):
             ( transportDomain,
                     securityModel,
                     securityName,
                     securityLevel,
-                    self.__context.contextEngineId,
+                    self.snmpContext.contextEngineId,
                     contextName,
                     pduVersion,
                     pdu,
                     securityModel,
                     securityName,
                     securityLevel,
-                    self.__context.contextEngineId,
+                    self.snmpContext.contextEngineId,
                     contextName,
                     pduVersion,
                     pdu,
                     securityModel,
                     securityName,
                     securityLevel,
-                    self.__context.contextEngineId,
+                    self.snmpContext.contextEngineId,
                     contextName,
                     pduVersion,
                     pdu,