mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
#3879 fix a regression in urllib.getproxies_environment
reviewers: Benjamin, Georg
This commit is contained in:
parent
1672e10dc2
commit
2c7470d951
3 changed files with 28 additions and 3 deletions
|
|
@ -1299,9 +1299,6 @@ def getproxies_environment():
|
|||
proxies = {}
|
||||
for name, value in os.environ.items():
|
||||
name = name.lower()
|
||||
if name == 'no_proxy':
|
||||
# handled in proxy_bypass_environment
|
||||
continue
|
||||
if value and name[-6:] == '_proxy':
|
||||
proxies[name[:-6]] = value
|
||||
return proxies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue