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 Neil Muller
Recipients Neil Muller, docs@python, kirikaza, terry.reedy
Date 2010-11-20.16:14:17
SpamBayes Score 2.761823e-07
Marked as misclassified No
Message-id <>
The problem is that the getproxies_environment function converts all environment variables to lower case before deciding whether to use the name. This means that whichever ends up last in os.environment will be used.

The attached patch does two things. It changes the behaviour to prefer the all lower case version if it exists, and adds a note to the ProxyHandler description noting that the environment variable used is not case sensitive, although the all lower case version will be preferred.

The behaviour change is debatable, but preferring the lower case name is likely to be less surprising in general.
Date User Action Args
2010-11-20 16:14:19Neil Mullersetrecipients: + Neil Muller, terry.reedy, docs@python, kirikaza
2010-11-20 16:14:19Neil Mullersetmessageid: <>
2010-11-20 16:14:17Neil Mullerlinkissue9637 messages
2010-11-20 16:14:17Neil Mullercreate