diff options
author | elie <elie> | 2008-02-03 19:44:01 +0000 |
---|---|---|
committer | elie <elie> | 2008-02-03 19:44:01 +0000 |
commit | ce77002418d71754d7cb5afd3d2b73e914243fed (patch) | |
tree | 49adba75c9a291163675be5722abefa2548d6aa3 /pysnmp | |
parent | d420937be4ed2889ff8f15ceba0dc01b8b09a0a4 (diff) | |
download | pysnmp-git-ce77002418d71754d7cb5afd3d2b73e914243fed.tar.gz |
MibBuilder.loadTexts flag added
Diffstat (limited to 'pysnmp')
-rw-r--r-- | pysnmp/smi/builder.py | 3 |
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)) |