diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-14 05:38:30 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-14 05:38:30 -0500 |
commit | fbcbb51009bc76df9f2c66547439474799b9ab15 (patch) | |
tree | 4e2d6a62426d43f0d05b69fbfaaba63ae927bbd1 /setuptools/package_index.py | |
parent | 80adba1cb4b07f6d182c907b5c5f796eb7b6b93d (diff) | |
download | external_python_setuptools-fbcbb51009bc76df9f2c66547439474799b9ab15.tar.gz external_python_setuptools-fbcbb51009bc76df9f2c66547439474799b9ab15.tar.bz2 external_python_setuptools-fbcbb51009bc76df9f2c66547439474799b9ab15.zip |
Use RawConfigParser instead of SafeConfigParser in PyPIConfig class. Interpolated values are no longer supported. Since backward compatibility could not be retained in either case, prefer the simpler, more direct format. Ref #442.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 322f9a61..2c565e88 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -945,14 +945,14 @@ class Credential(object): def __str__(self): return '%(username)s:%(password)s' % vars(self) -class PyPIConfig(configparser.SafeConfigParser): +class PyPIConfig(configparser.RawConfigParser): def __init__(self): """ Load from ~/.pypirc """ defaults = dict.fromkeys(['username', 'password', 'repository'], '') - configparser.SafeConfigParser.__init__(self, defaults) + configparser.RawConfigParser.__init__(self, defaults) rc = os.path.join(os.path.expanduser('~'), '.pypirc') if os.path.exists(rc): |