Return True, if host should be bypassed. Checks proxy settings gathered from the environment, if specified, or from the MacOSX framework SystemConfiguration.
(host)
| 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() |
searching dependent graphs…