118 proxyuser = ui.config("http_proxy", "user") |
118 proxyuser = ui.config("http_proxy", "user") |
119 proxypasswd = ui.config("http_proxy", "passwd") |
119 proxypasswd = ui.config("http_proxy", "passwd") |
120 |
120 |
121 # see if we should use a proxy for this url |
121 # see if we should use a proxy for this url |
122 no_list = [ "localhost", "127.0.0.1" ] |
122 no_list = [ "localhost", "127.0.0.1" ] |
123 no_list.extend([p.strip().lower() for |
123 no_list.extend([p.lower() for |
124 p in ui.config("http_proxy", "no", '').split(',') |
124 p in ui.configlist("http_proxy", "no")]) |
125 if p.strip()]) |
|
126 no_list.extend([p.strip().lower() for |
125 no_list.extend([p.strip().lower() for |
127 p in os.getenv("no_proxy", '').split(',') |
126 p in os.getenv("no_proxy", '').split(',') |
128 if p.strip()]) |
127 if p.strip()]) |
129 # "http_proxy.always" config is for running tests on localhost |
128 # "http_proxy.always" config is for running tests on localhost |
130 if (not ui.configbool("http_proxy", "always") and |
129 if (not ui.configbool("http_proxy", "always") and |