diff options
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r-- | module/ConfigParser.py | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/module/ConfigParser.py b/module/ConfigParser.py index 78b612f13..9de405a3d 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -19,22 +19,21 @@ CONF_VERSION = 1 class ConfigParser: """ holds and manage the configuration - + current dict layout: - + { - - section : { - option : { + + section: { + option: { value: type: desc: } desc: - + } - - + """ @@ -372,21 +371,3 @@ class Section: def __setitem__(self, item, value): """setitem""" self.parser.set(self.section, item, value) - - -if __name__ == "__main__": - pypath = "" - - from time import time - - a = time() - - c = ConfigParser() - - b = time() - - print "sec", b - a - - print c.config - - c.saveConfig(c.config, "user.conf") |