From 014d0609899dba70a1af0b32de377ca08c54aded Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sun, 11 Sep 2011 12:57:15 -0700 Subject: Honor http_proxy variable globally If the http_proxy environment variable was set, honor it during the entire repo session for any Python created HTTP connections. Change-Id: Ib4ae833cb2cdd47ab0126949f6b399d2c142887d Signed-off-by: Shawn O. Pearce --- git_config.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'git_config.py') diff --git a/git_config.py b/git_config.py index 289a5b64..19c19f19 100644 --- a/git_config.py +++ b/git_config.py @@ -563,12 +563,6 @@ class Remote(object): self._review_port = info[2] else: try: - if 'http_proxy' in os.environ: - proxy_url = os.environ['http_proxy'] - proxy_support = urllib2.ProxyHandler({"http" : proxy_url, "https" : proxy_url}) - opener = urllib2.build_opener(proxy_support) - urllib2.install_opener(opener) - info = urlopen(u).read() if info == 'NOT_AVAILABLE': raise UploadError('%s: SSH disabled' % self.review) -- cgit v1.2.3-54-g00ecf