Commit 1aec3f08 authored by Guido van Rossum's avatar Guido van Rossum

lowercase proxies env variables, for Windows.

parent 43055425
...@@ -748,6 +748,7 @@ def getproxies(): ...@@ -748,6 +748,7 @@ def getproxies():
""" """
proxies = {} proxies = {}
for name, value in os.environ.items(): for name, value in os.environ.items():
name = string.lower(name)
if value and name[-6:] == '_proxy': if value and name[-6:] == '_proxy':
proxies[name[:-6]] = value proxies[name[:-6]] = value
return proxies return proxies
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment