diff options
author | elie <elie> | 2014-06-16 16:37:02 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-16 16:37:02 +0000 |
commit | 95629ecefb5390431a05ff18f7091b99fe67b340 (patch) | |
tree | f1077dbe34cbd2cff36045b9e0834e55a9653822 | |
parent | 8100a85271740bff7243f7b55a28182d6b936ae1 (diff) | |
download | pysnmp-95629ecefb5390431a05ff18f7091b99fe67b340.tar.gz |
cosmetic fix
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index 64d4a89..7000d38 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -492,28 +492,6 @@ class BulkCommandGeneratorSingleRun(CommandGenerator): cbFun, cbCtx) -def _sendBulkReq(self, - snmpEngine, - targetName, - nonRepeaters, - maxRepetitions, - varBinds, - cbFun, - cbCtx=None, - contextEngineId=None, - contextName=''): - cbCtx = cbFun, cbCtx - cbFun = __sendReqCbFun - return self.sendVarBinds(snmpEngine, - targetName, - nonRepeaters, - maxRepetitions, - contextEngineId, - contextName, - varBinds, - cbFun, - cbCtx) - class BulkCommandGenerator(BulkCommandGeneratorSingleRun): def processResponseVarBinds(self, snmpEngine, @@ -592,14 +570,14 @@ def __sendReqCbFun(snmpEngine, errorIndication, errorStatus, errorIndex, - PDU, + varBinds, cbCtx): cbFun, cbCtx = cbCtx return cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex, - PDU, + varBinds, cbCtx) def _sendReq(self, @@ -620,6 +598,28 @@ def _sendReq(self, cbFun, cbCtx) +def _sendBulkReq(self, + snmpEngine, + targetName, + nonRepeaters, + maxRepetitions, + varBinds, + cbFun, + cbCtx=None, + contextEngineId=None, + contextName=''): + cbCtx = cbFun, cbCtx + cbFun = __sendReqCbFun + return self.sendVarBinds(snmpEngine, + targetName, + nonRepeaters, + maxRepetitions, + contextEngineId, + contextName, + varBinds, + cbFun, + cbCtx) + # install compatibility wrappers GetCommandGenerator.sendReq = _sendReq SetCommandGenerator.sendReq = _sendReq |