MCPcopy Index your code
hub / github.com/python/cpython / proxy_bypass

Function proxy_bypass

Lib/urllib/request.py:2053–2064  ·  view source on GitHub ↗

Return True, if host should be bypassed. Checks proxy settings gathered from the environment, if specified, or from the MacOSX framework SystemConfiguration.

(host)

Source from the content-addressed store, hash-verified

2051
2052
2053 def proxy_bypass(host):
2054 """Return True, if host should be bypassed.
2055
2056 Checks proxy settings gathered from the environment, if specified,
2057 or from the MacOSX framework SystemConfiguration.
2058
2059 """
2060 proxies = getproxies_environment()
2061 if proxies:
2062 return proxy_bypass_environment(host, proxies)
2063 else:
2064 return proxy_bypass_macosx_sysconf(host)
2065
2066 def getproxies():
2067 return getproxies_environment() or getproxies_macosx_sysconf()

Callers 2

proxy_openMethod · 0.85

Calls 4

getproxies_environmentFunction · 0.85
proxy_bypass_environmentFunction · 0.85
proxy_bypass_registryFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…