This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco, lukasz.langa, nagylzs, pitrou, r.david.murray, tlevine
Date 2015-12-14.10:30:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450089037.75.0.403110151924.issue20120@psf.upfronthosting.co.za>
In-reply-to
Content
This same issue applies to setuptools (https://bitbucket.org/pypa/setuptools/issues/442/setuptools-1832-cannot-access-pypi-if-pypi).

I've created a test that captures the failure, but I struggled to find a solution that doesn't break across Python versions.

Thomas suggested guiding the user to provide two percent signs instead of one, but that breaks on Python 2, which will interpret the value as two percent signs.

As suggested, using RawConfigParser does address the issue on both Python 2 and 3, but that of course could break compatibility if interpolation was expected.

I have found that if one uses SafeConfigParser on Python 2 and 3, and requires the user to use two percent signs to represent one, it does seem to work on both Python 2 and 3.
History
Date User Action Args
2015-12-14 10:30:37jaracosetrecipients: + jaraco, pitrou, r.david.murray, nagylzs, lukasz.langa, tlevine
2015-12-14 10:30:37jaracosetmessageid: <1450089037.75.0.403110151924.issue20120@psf.upfronthosting.co.za>
2015-12-14 10:30:37jaracolinkissue20120 messages
2015-12-14 10:30:36jaracocreate