Fix regression in API caused by commit
- The added optional parameter changes API and should default to None
This utility call is used by for example requestbuilder package directly
which breaks because it passes only one argument to the function as it
used to be.
@@ -684,7 +684,7 @@ def should_bypass_proxies(url, no_proxy):
return False
-def get_environ_proxies(url, no_proxy):
+def get_environ_proxies(url, no_proxy=None):
"""
Return a dict of environment proxies.
