Neil Muller <drnlmuller+b...@gmail.com> added the comment:

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.

----------
keywords: +patch
nosy: +Neil Muller
Added file: http://bugs.python.org/file19678/urllib_PROXY.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9637>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to