summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-06-19 11:31:45 +0200
committerGuido Günther <agx@sigxcpu.org>2013-06-19 14:55:44 +0200
commitcaff99cb63b4837eb91d5ee312c2c36663c08c88 (patch)
tree8a13f0068e45b23878917be03b8be6f08415a7c2 /gbp/config.py
parent12dce5f8469d5a6508df518134cae133d8da6efb (diff)
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__.
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py2
1 files changed, 1 insertions, 1 deletions
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())