[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-05 Thread chris nojima
chris nojima added the comment: Sorry. You are correct, this must have been fixed in 3.1.2. The box I was on had 3.1.1 on it and some other configuration issues led me to believe this was happening in 3.2 as well. -- resolution: -> fixed status: open -> closed __

[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: hmm, the code of urllib.request.getproxies_environment contains:: for name, value in os.environ.items(): name = name.lower() if value and name[-6:] == '_proxy': proxies[name[:-6]] = value So the comparison is effectively c

[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-04 Thread chris nojima
New submission from chris nojima : There is an issue where on windows os.environ keys are all uppercase. If i run set a="hello", in python it will appear as a key "A". urllib.request.getproxies_environment looks for all _proxy environment vars by looking for "_proxy". Since windows uppercases,