mirror of https://github.com/pypa/pip
Undo name change on baseparser
This commit is contained in:
parent
614059007f
commit
812008a1ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue