diff options
Diffstat (limited to 'module/config/ConfigParser.py')
-rw-r--r-- | module/config/ConfigParser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/config/ConfigParser.py b/module/config/ConfigParser.py index 135e84bbc..2f974b75e 100644 --- a/module/config/ConfigParser.py +++ b/module/config/ConfigParser.py @@ -163,7 +163,10 @@ class ConfigParser: return self.config[section].config[option] def iterSections(self): - return self.config.iteritems() + """ Yields section, config info, values, for all sections """ + + for name, config in self.config.iteritems(): + yield name, config, self.values[name] if name in self.values else {} def addConfigSection(self, section, name, desc, long_desc, config): """Adds a section to the config. `config` is a list of config tuples as used in plugin api defined as: |