From a1af7257ffd5a75b5296a8baaba0be9cd22d6835 Mon Sep 17 00:00:00 2001 From: pierre-yves david Date: Mon, 27 Oct 2008 04:41:25 +0100 Subject: configuration: don't add DEFAULT section python2.6 raise an error when trying to add the DEFAULT section. As this section already exist, we don't need to add it anyway. This work also in previous version. --- configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.py b/configuration.py index ac27166..1890ccb 100644 --- a/configuration.py +++ b/configuration.py @@ -378,7 +378,8 @@ class OptionsManagerMixIn(object): """add an option group including the listed options """ # add section to the config file - self._config_parser.add_section(group_name) + if group_name != "DEFAULT": + self._config_parser.add_section(group_name) # add option group to the command line parser if options: group = OptionGroup(self._optik_parser, -- cgit v1.2.1