summaryrefslogtreecommitdiff
path: root/pysnmp/smi/view.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-10 16:38:35 +0100
committerGitHub <noreply@github.com>2019-02-10 16:38:35 +0100
commit588b9b902d191d8010cb6b247fcb07887d59542c (patch)
tree419b01d2598e91331db784ac3a6675324aba8c24 /pysnmp/smi/view.py
parent9664858b145140a4fbb2a22b633c1ab41c2555bd (diff)
downloadpysnmp-git-588b9b902d191d8010cb6b247fcb07887d59542c.tar.gz
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.
Diffstat (limited to 'pysnmp/smi/view.py')
-rw-r--r--pysnmp/smi/view.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/smi/view.py b/pysnmp/smi/view.py
index 223e22d8..46e74d8a 100644
--- a/pysnmp/smi/view.py
+++ b/pysnmp/smi/view.py
@@ -33,7 +33,7 @@ class MibViewController(object):
if self.lastBuildId == self.mibBuilder.lastBuildId:
return
- debug.logger & debug.flagMIB and debug.logger('indexMib: re-indexing MIB view')
+ debug.logger & debug.FLAG_MIB and debug.logger('indexMib: re-indexing MIB view')
MibScalarInstance, = self.mibBuilder.importSymbols(
'SNMPv2-SMI', 'MibScalarInstance'
@@ -210,7 +210,7 @@ class MibViewController(object):
str='Can\'t resolve node name %s::%s at %s' %
(modName, nodeName, self)
)
- debug.logger & debug.flagMIB and debug.logger(
+ debug.logger & debug.FLAG_MIB and debug.logger(
'getNodeNameByOid: resolved %s:%s -> %s.%s' % (modName, nodeName, label, suffix))
return oid, label, suffix
@@ -226,7 +226,7 @@ class MibViewController(object):
raise error.NoSuchObjectError(
str='No such symbol %s::%s at %s' % (modName, nodeName, self)
)
- debug.logger & debug.flagMIB and debug.logger(
+ debug.logger & debug.FLAG_MIB and debug.logger(
'getNodeNameByDesc: resolved %s:%s -> %s' % (modName, nodeName, oid))
return self.getNodeNameByOid(oid, modName)