From 75345928c3e2cb0f88cdf44d33752e1ed6b19290 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 14 Nov 2013 10:29:59 -0500 Subject: Renamed class for proper capitalization and for clarity. --- setuptools/package_index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setuptools/package_index.py') 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) -- cgit v1.2.3