From 588b9b902d191d8010cb6b247fcb07887d59542c Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sun, 10 Feb 2019 16:38:35 +0100 Subject: Uppercase global constants (#238) This is a massive patch essentially upper-casing global/class attributes that mean to be constants. Some previously exposed constants have been preserved for compatibility reasons (notably, in `hlapi`), though the rest might break user code relying on pysnmp 4. --- pysnmp/proto/acmod/void.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysnmp/proto/acmod/void.py') diff --git a/pysnmp/proto/acmod/void.py b/pysnmp/proto/acmod/void.py index ecc4c4b6..677103b9 100644 --- a/pysnmp/proto/acmod/void.py +++ b/pysnmp/proto/acmod/void.py @@ -12,7 +12,7 @@ from pysnmp import debug # noinspection PyUnusedLocal class Vacm(object): """Void Access Control Model""" - accessModelID = 0 + ACCESS_MODEL_ID = 0 def isAccessAllowed(self, snmpEngine, @@ -22,7 +22,7 @@ class Vacm(object): viewType, contextName, variableName): - debug.logger & debug.flagACL and debug.logger( + debug.logger & debug.FLAG_ACL and debug.logger( 'isAccessAllowed: viewType %s for variableName %s - OK' % (viewType, variableName) ) -- cgit v1.2.1