diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 10:29:59 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 10:29:59 -0500 |
commit | 75345928c3e2cb0f88cdf44d33752e1ed6b19290 (patch) | |
tree | 4a7c68ed1c5cdf3c098c545725ea8632045a3e76 /setuptools/package_index.py | |
parent | 117a8a57a9a06521f028eb4e1afc1f6fd4dd8dc8 (diff) | |
download | external_python_setuptools-75345928c3e2cb0f88cdf44d33752e1ed6b19290.tar.gz external_python_setuptools-75345928c3e2cb0f88cdf44d33752e1ed6b19290.tar.bz2 external_python_setuptools-75345928c3e2cb0f88cdf44d33752e1ed6b19290.zip |
Renamed class for proper capitalization and for clarity.
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 0a409604..a61d3c74 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -934,14 +934,14 @@ class Credential(object): def __str__(self): return '%(username)s:%(password)s' % vars(self) -class PyPirc(ConfigParser.ConfigParser): +class PyPIConfig(ConfigParser.ConfigParser): def __init__(self): """ Load from ~/.pypirc """ defaults = dict.fromkeys(['username', 'password', 'repository'], '') - super(PyPirc, self).__init__(defaults) + super(PyPIConfig, self).__init__(defaults) rc = os.path.join(os.path.expanduser('~'), '.pypirc') if os.path.exists(rc): @@ -989,7 +989,7 @@ def open_with_auth(url, opener=urllib2.urlopen): auth = None if not auth: - cred = PyPirc().find_credential(url) + cred = PyPIConfig().find_credential(url) if cred: auth = str(cred) log.info('Authentication found for URL: %s' % url) |