aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-14 05:31:46 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-14 05:31:46 -0500
commit80adba1cb4b07f6d182c907b5c5f796eb7b6b93d (patch)
tree5f3e50bcb64cbc8dabb3d66cab27d0e79e1dd4d6 /setuptools/package_index.py
parentca4321bb5833e2daa7bee1a32a3dee37cb49f012 (diff)
downloadexternal_python_setuptools-80adba1cb4b07f6d182c907b5c5f796eb7b6b93d.tar.gz
external_python_setuptools-80adba1cb4b07f6d182c907b5c5f796eb7b6b93d.tar.bz2
external_python_setuptools-80adba1cb4b07f6d182c907b5c5f796eb7b6b93d.zip
Use SafeConfigParser in PyPIConfig file. Allows percent signs to be specified using two percent signs. Fixes #442.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index a26b58bc..322f9a61 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.ConfigParser):
+class PyPIConfig(configparser.SafeConfigParser):
def __init__(self):
"""
Load from ~/.pypirc
"""
defaults = dict.fromkeys(['username', 'password', 'repository'], '')
- configparser.ConfigParser.__init__(self, defaults)
+ configparser.SafeConfigParser.__init__(self, defaults)
rc = os.path.join(os.path.expanduser('~'), '.pypirc')
if os.path.exists(rc):