[docs] [issue9637] docs do not say that urllib uses HTTP_PROXY

Neil Muller report at bugs.python.org
Sat Nov 20 17:14:19 CET 2010


Neil Muller <drnlmuller+bugs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9637>
_______________________________________


More information about the docs mailing list