lowercase proxies env variables, for Windows.

This commit is contained in:
Guido van Rossum 1997-05-28 15:37:19 +00:00
parent 4305542517
commit 1aec3f087e
1 changed files with 1 additions and 0 deletions

View File

@ -748,6 +748,7 @@ def getproxies():
"""
proxies = {}
for name, value in os.environ.items():
name = string.lower(name)
if value and name[-6:] == '_proxy':
proxies[name[:-6]] = value
return proxies