diff options
author | elie <elie> | 2015-12-12 15:48:47 +0000 |
---|---|---|
committer | elie <elie> | 2015-12-12 15:48:47 +0000 |
commit | 1244961c3fb0c76289bc94c6b66da7474838c556 (patch) | |
tree | 59c463ef9cb75b7c1a3a4c3681b4c86c2fefd19f /pysnmp/proto/mpmod | |
parent | 9815736980981682ec7c4d510cf0bd8e4473a3fe (diff) | |
download | pysnmp-git-1244961c3fb0c76289bc94c6b66da7474838c556.tar.gz |
all SNMP counters now incremented via '+= 1' rather than 'x = x + 1'
Diffstat (limited to 'pysnmp/proto/mpmod')
-rw-r--r-- | pysnmp/proto/mpmod/rfc2576.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/proto/mpmod/rfc2576.py b/pysnmp/proto/mpmod/rfc2576.py index 605d01ca..ebe6e43c 100644 --- a/pysnmp/proto/mpmod/rfc2576.py +++ b/pysnmp/proto/mpmod/rfc2576.py @@ -238,7 +238,7 @@ class SnmpV1MessageProcessingModel(AbstractMessageProcessingModel): except PyAsn1Error: debug.logger & debug.flagMP and debug.logger('prepareDataElements: %s' % (sys.exc_info()[1],)) snmpInASNParseErrs, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpInASNParseErrs') - snmpInASNParseErrs.syntax = snmpInASNParseErrs.syntax + 1 + snmpInASNParseErrs.syntax += 1 raise error.StatusInformation(errorIndication=errind.parseError) debug.logger & debug.flagMP and debug.logger('prepareDataElements: %s' % (msg.prettyPrint(),)) |