From a5b0a50d28d2ff34c9bf3ea0d051c742d33770fe Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Wed, 8 Aug 2007 13:24:52 +0000 Subject: [PATCH] https_proxy is not supported by urllib2. It only leads to an error or, at best, a warning. Thus, unset https_proxy and HTTPS_PROXY in the environment, so urllib2 doesn't trip over it. https://bugzilla.novell.com/show_bug.cgi?id=214983 https://bugzilla.novell.com/show_bug.cgi?id=298378 --- osc/conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osc/conf.py b/osc/conf.py index 13c073fb..eec33528 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -122,6 +122,15 @@ def init_basicauth(config): global cookiejar + # HTTPS proxy is not supported by urllib2. It only leads to an error + # or, at best, a warning. + # https://bugzilla.novell.com/show_bug.cgi?id=214983 + # https://bugzilla.novell.com/show_bug.cgi?id=298378 + if 'https_proxy' in os.environ: + del os.environ['https_proxy'] + if 'HTTPS_PROXY' in os.environ: + del os.environ['HTTPS_PROXY'] + if config['http_debug']: # brute force def urllib2_debug_init(self, debuglevel=0):