From b49a547bb2658ce1ab565184c8e8458aca1e23da Mon Sep 17 00:00:00 2001 From: sylvain thenault Date: Mon, 12 Jan 2009 12:50:10 +0100 Subject: fix case sensitivity pb w/ config file sections --- configuration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.py b/configuration.py index b60d23e..db6452d 100644 --- a/configuration.py +++ b/configuration.py @@ -515,7 +515,11 @@ class OptionsManagerMixIn(object): if config_file is not None: config_file = expanduser(config_file) if config_file and exists(config_file): - self._config_parser.read([config_file]) + parser = self._config_parser + parser.read([config_file]) + # normalize sections'title + for sect in parser._sections.keys(): + parser._sections[sect.upper()] = parser._sections[sect] elif not self.quiet: msg = 'No config file found, using default configuration' print >> sys.stderr, msg -- cgit v1.2.1