summaryrefslogtreecommitdiff
path: root/pysnmp/entity
diff options
context:
space:
mode:
authorelie <elie>2015-12-12 15:48:47 +0000
committerelie <elie>2015-12-12 15:48:47 +0000
commit1244961c3fb0c76289bc94c6b66da7474838c556 (patch)
tree59c463ef9cb75b7c1a3a4c3681b4c86c2fefd19f /pysnmp/entity
parent9815736980981682ec7c4d510cf0bd8e4473a3fe (diff)
downloadpysnmp-git-1244961c3fb0c76289bc94c6b66da7474838c556.tar.gz
all SNMP counters now incremented via '+= 1' rather than 'x = x + 1'
Diffstat (limited to 'pysnmp/entity')
-rw-r--r--pysnmp/entity/engine.py2
-rw-r--r--pysnmp/entity/rfc3413/ntfrcv.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/entity/engine.py b/pysnmp/entity/engine.py
index a3036fd0..cce2503b 100644
--- a/pysnmp/entity/engine.py
+++ b/pysnmp/entity/engine.py
@@ -119,7 +119,7 @@ class SnmpEngine:
pass
try:
- snmpEngineBoots.syntax = snmpEngineBoots.syntax + 1
+ snmpEngineBoots.syntax += 1
except:
snmpEngineBoots.syntax = snmpEngineBoots.syntax.clone(1)
diff --git a/pysnmp/entity/rfc3413/ntfrcv.py b/pysnmp/entity/rfc3413/ntfrcv.py
index 1a27222c..da3734e5 100644
--- a/pysnmp/entity/rfc3413/ntfrcv.py
+++ b/pysnmp/entity/rfc3413/ntfrcv.py
@@ -78,7 +78,7 @@ class NotificationReceiver:
except error.StatusInformation:
debug.logger & debug.flagApp and debug.logger('processPdu: stateReference %s, statusInformation %s' % (stateReference, sys.exc_info()[1]))
snmpSilentDrops, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpSilentDrops')
- snmpSilentDrops.syntax = snmpSilentDrops.syntax + 1
+ snmpSilentDrops.syntax += 1
elif PDU.tagSet in rfc3411.unconfirmedClassPDUs:
pass