aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-14 10:29:59 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-14 10:29:59 -0500
commit75345928c3e2cb0f88cdf44d33752e1ed6b19290 (patch)
tree4a7c68ed1c5cdf3c098c545725ea8632045a3e76 /setuptools/package_index.py
parent117a8a57a9a06521f028eb4e1afc1f6fd4dd8dc8 (diff)
downloadexternal_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-xsetuptools/package_index.py6
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)