mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
lowercase proxies env variables, for Windows.
This commit is contained in:
parent
4305542517
commit
1aec3f087e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue