Author Neil Muller
Recipients Neil Muller, docs@python, kirikaza, terry.reedy
Date 2010-11-20.16:14:17
SpamBayes Score 2.76182e-07
Marked as misclassified No
Message-id <1290269659.4.0.253188321346.issue9637@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1290269659.4.0.253188321346.issue9637@psf.upfronthosting.co.za>
2010-11-20 16:14:17Neil Mullerlinkissue9637 messages
2010-11-20 16:14:17Neil Mullercreate