diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-23 21:24:34 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-23 21:24:34 +0100 |
commit | 00f2d311d806aa3585dbabfc2d66b797be3f2664 (patch) | |
tree | f88742092ac12ec778feb66e2ebb87d8e23f2dca /module/config/ConfigParser.py | |
parent | closed #460 (diff) | |
download | pyload-00f2d311d806aa3585dbabfc2d66b797be3f2664.tar.xz |
little fixes
Diffstat (limited to 'module/config/ConfigParser.py')
-rw-r--r-- | module/config/ConfigParser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/config/ConfigParser.py b/module/config/ConfigParser.py index 1d3ae87d6..82c6a9f91 100644 --- a/module/config/ConfigParser.py +++ b/module/config/ConfigParser.py @@ -5,7 +5,7 @@ from time import sleep from os.path import exists from gettext import gettext -from module.utils import chmod, decode +from module.utils import chmod CONF_VERSION = 2 @@ -206,6 +206,8 @@ class ConfigParser: if base: if section not in self.baseSections: self.baseSections.append(section) + elif section in self.baseSections: + return # would overwrite base section data = SectionTuple(gettext(name), gettext(desc), gettext(long_desc), d) self.config[section] = data |