Undo name change on baseparser

This commit is contained in:
Pradyun S. Gedam 2017-01-18 20:39:52 +05:30
parent 614059007f
commit 812008a1ce
1 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ class ConfigOptionParser(CustomOptionParser):
self.name = kwargs.pop('name')
isolated = kwargs.pop("isolated", False)
self._configuration_obj = Configuration(isolated)
self.config = Configuration(isolated)
assert self.name
optparse.OptionParser.__init__(self, *args, **kwargs)
@ -151,13 +151,13 @@ class ConfigOptionParser(CustomOptionParser):
options (lists)."""
# Load the configuration
self._configuration_obj.load()
self.config.load()
# Accumulate complex default state.
self.values = optparse.Values(self.defaults)
late_eval = set()
# Then set the options with those values
for key, val in self._configuration_obj.items():
for key, val in self.config.items():
# ignore empty values
if not val:
continue