diff options
author | Pradyun S. Gedam <pradyunsg@gmail.com> | 2017-05-12 12:26:25 +0530 |
---|---|---|
committer | Pradyun S. Gedam <pradyunsg@gmail.com> | 2017-05-20 12:54:04 +0530 |
commit | b617f39bf6649e1838d138301b9f557454cf4924 (patch) | |
tree | 1edb63d61c0445c9a3025e065bf1ac7688ad9657 /pip | |
parent | 027911f5e1128fa111954145982045f8bc6e84e7 (diff) | |
download | pip-b617f39bf6649e1838d138301b9f557454cf4924.tar.gz |
Add debugging message + :art:
Diffstat (limited to 'pip')
-rw-r--r-- | pip/configuration.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pip/configuration.py b/pip/configuration.py index 22ac63f73..f78d7522e 100644 --- a/pip/configuration.py +++ b/pip/configuration.py @@ -209,14 +209,16 @@ class Configuration(object): self._parsers[variant].append((file, parser)) def _load_file(self, variant, file): + logger.debug("For variant '%s', will try loading '%s'", variant, file) parser = self._construct_parser(file) for section in parser.sections(): - self._config[variant].update( - self._normalized_keys(section, parser.items(section)) - ) + items = parser.items(section) + self._config[variant].update(self._normalized_keys(section, items)) + return parser + # XXX: This is patched in the tests. def _construct_parser(self, file): parser = configparser.RawConfigParser() # If there is no such file, don't bother reading it but create the |