diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-14 04:55:43 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-14 04:55:43 -0500 |
commit | ca4321bb5833e2daa7bee1a32a3dee37cb49f012 (patch) | |
tree | 10d108b3e6dbf9ec64a8cff384dd8d9712c129fa /setuptools/package_index.py | |
parent | 477fef2d71db14b82d74ea73f4f90e02876d1967 (diff) | |
download | external_python_setuptools-ca4321bb5833e2daa7bee1a32a3dee37cb49f012.tar.gz external_python_setuptools-ca4321bb5833e2daa7bee1a32a3dee37cb49f012.tar.bz2 external_python_setuptools-ca4321bb5833e2daa7bee1a32a3dee37cb49f012.zip |
Use the modern name for the configparser module
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 7c071457..a26b58bc 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -20,7 +20,7 @@ from distutils.errors import DistutilsError from setuptools.compat import ( urllib2, httplib, StringIO, HTTPError, urlparse, urlunparse, unquote, splituser, url2pathname, name2codepoint, unichr, urljoin, urlsplit, - urlunsplit, ConfigParser, filter, map, + urlunsplit, configparser, filter, map, ) from setuptools.compat import filterfalse from fnmatch import translate @@ -945,14 +945,14 @@ class Credential(object): def __str__(self): return '%(username)s:%(password)s' % vars(self) -class PyPIConfig(ConfigParser.ConfigParser): +class PyPIConfig(configparser.ConfigParser): def __init__(self): """ Load from ~/.pypirc """ defaults = dict.fromkeys(['username', 'password', 'repository'], '') - ConfigParser.ConfigParser.__init__(self, defaults) + configparser.ConfigParser.__init__(self, defaults) rc = os.path.join(os.path.expanduser('~'), '.pypirc') if os.path.exists(rc): |