summaryrefslogtreecommitdiff
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
parent12dce5f8469d5a6508df518134cae133d8da6efb (diff)
downloadgit-buildpackage-caff99cb63b4837eb91d5ee312c2c36663c08c88.tar.gz
git-buildpackage-caff99cb63b4837eb91d5ee312c2c36663c08c88.tar.bz2
git-buildpackage-caff99cb63b4837eb91d5ee312c2c36663c08c88.zip
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__.
-rw-r--r--gbp/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py
index c27cf5a6..16faab10 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())