def _read_configfile(self):
rc = self.config_filename<EOL>if not os.path.isabs(rc):<EOL><INDENT>rc = os.path.join(os.path.expanduser('<STR_LIT>'), self.config_filename)<EOL><DEDENT>files = [f for f in [rc, '<STR_LIT>'] if os.path.exists(f)]<EOL>if not files:<EOL><INDENT>self.config = None<EOL>return<EOL><DEDENT>self.config = ConfigParser()<EOL>self.config.read(files)<EOL>if (not self.is_old_pypi_config() and<EOL>not self.is_new_pypi_config()):<EOL><INDENT>self.config = None<EOL><DEDENT>
Read the config file and store it (when valid)