summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2009-05-03 09:54:35 +0000
committerelie <elie>2009-05-03 09:54:35 +0000
commit12d2c2ced819078895d4ab176ae8c7671bbacce4 (patch)
tree643666276023169bc49501d23bb6fdf18137a1a4
parentcf92224da187bb32cafe2dfc35b9710c39201742 (diff)
downloadpysnmp-12d2c2ced819078895d4ab176ae8c7671bbacce4.tar.gz
drop empty MIB modules dicts
-rw-r--r--pysnmp/smi/builder.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pysnmp/smi/builder.py b/pysnmp/smi/builder.py
index 0e765aa..a486e7c 100644
--- a/pysnmp/smi/builder.py
+++ b/pysnmp/smi/builder.py
@@ -176,5 +176,8 @@ class MibBuilder:
debug.logger & debug.flagBld and debug.logger('unexportSymbols: symbol %s::%s' % (modName, symName))
+ if not self.mibSymbols[modName]:
+ del self.mibSymbols[modName]
+
self.lastBuildId = self.lastBuildId + 1