From caff99cb63b4837eb91d5ee312c2c36663c08c88 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 19 Jun 2013 11:31:45 +0200 Subject: GbpOptionParser: Make sure we access the GbpOptionParser*'s default dict and not the one from the OptionParser. The instance's default dict this gets reset to empty when invoking OptionParser.__init__. --- gbp/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gbp/config.py') diff --git a/gbp/config.py b/gbp/config.py index c27cf5a..16faab1 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -307,7 +307,7 @@ class GbpOptionParser(OptionParser): Parse the possible config files and set appropriate values default values """ - parser = SafeConfigParser(self.defaults) + parser = SafeConfigParser(dict(self.__class__.defaults)) parser.read(self.config_files) self.config = dict(parser.defaults()) -- cgit v1.2.3