diff options
author | elie <elie> | 2014-06-16 16:37:02 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-16 16:37:02 +0000 |
commit | 2f62ebd4495d6f60fffbe8c8509862a293107878 (patch) | |
tree | 36040e6260e5066493792241617fbd631f828169 /pysnmp/entity/rfc3413 | |
parent | 99def7a08783a59d8ed31977cf8c6d483b9c0ca6 (diff) | |
download | pysnmp-git-2f62ebd4495d6f60fffbe8c8509862a293107878.tar.gz |
cosmetic fix
Diffstat (limited to 'pysnmp/entity/rfc3413')
-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 64d4a89b..7000d38d 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 |