summaryrefslogtreecommitdiff
path: root/pysnmp
diff options
context:
space:
mode:
authorelie <elie>2008-02-03 19:44:01 +0000
committerelie <elie>2008-02-03 19:44:01 +0000
commitce77002418d71754d7cb5afd3d2b73e914243fed (patch)
tree49adba75c9a291163675be5722abefa2548d6aa3 /pysnmp
parentd420937be4ed2889ff8f15ceba0dc01b8b09a0a4 (diff)
downloadpysnmp-git-ce77002418d71754d7cb5afd3d2b73e914243fed.tar.gz
MibBuilder.loadTexts flag added
Diffstat (limited to 'pysnmp')
-rw-r--r--pysnmp/smi/builder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pysnmp/smi/builder.py b/pysnmp/smi/builder.py
index ea4ef0b3..15c5553b 100644
--- a/pysnmp/smi/builder.py
+++ b/pysnmp/smi/builder.py
@@ -8,6 +8,7 @@ except ImportError:
from pysnmp import debug
class MibBuilder:
+ loadTexts = 0
def __init__(self):
self.lastBuildId = self._autoName = 0L
paths = (
@@ -136,7 +137,6 @@ class MibBuilder:
debug.logger & debug.flagBld and debug.logger('exportSymbols: anonymous symbol %s::__pysnmp_%ld' % (modName, self._autoName))
mibSymbols['__pysnmp_%ld' % self._autoName] = symObj
self._autoName = self._autoName + 1
-
for symName, symObj in namedSyms.items():
if mibSymbols.has_key(symName):
raise error.SmiError(
@@ -144,6 +144,7 @@ class MibBuilder:
)
if hasattr(symObj, 'label') and symObj.label:
symName = symObj.label
+
mibSymbols[symName] = symObj
debug.logger & debug.flagBld and debug.logger('exportSymbols: symbol %s::%s' % (modName, symName))