{"body":"    # XXX: This is patched in the tests.\n    def _iter_config_files(self):\n        # type: () -> Iterable[Tuple[Kind, List[str]]]\n        \"\"\"Yields variant and configuration files associated with it.\n\n        This should be treated like items of a dictionary.\n        \"\"\"\n        # SMELL: Move the conditions out of this function\n\n        # environment variables have the lowest priority\n        config_file = os.environ.get('PIP_CONFIG_FILE', None)\n        if config_file is not None:\n            yield kinds.ENV, [config_file]\n        else:\n            yield kinds.ENV, []\n\n        # at the base we have any global configuration\n        yield kinds.GLOBAL, list(site_config_files)\n\n        # per-user configuration next\n        should_load_user_config = not self.isolated and not (\n            config_file and os.path.exists(config_file)\n        )\n        if should_load_user_config:\n            # The legacy config file is overridden by the new config file\n            yield kinds.USER, [legacy_config_file, new_config_file]\n\n        # finally virtualenv configuration first trumping others\n        if running_under_virtualenv():\n            yield kinds.VENV, [venv_config_file]","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/ZRpTQ6b8","modified":1553876491,"id":"ZRpTQ6b8","size":1181,"lines":30,"own_paste":false,"theme":"","date":1553876491}