From 7fb87cef2105532dc87d1d04e5808530bc6e7658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Thu, 8 Oct 2009 13:55:37 +0000 Subject: [PATCH] - forgot these lines in my last commit (r8177) --- osc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index aa213ddc..de9981c4 100755 --- a/osc/core.py +++ b/osc/core.py @@ -1847,12 +1847,12 @@ def http_request(method, url, headers={}, data=None, file=None, timeout=100): old_timeout = socket.getdefaulttimeout() # XXX: dirty hack as timeout doesn't work with python-m2crypto - if old_timeout != timeout and api_host_options['sslcertck'] == 0: + if old_timeout != timeout and not api_host_options['sslcertck']: socket.setdefaulttimeout(timeout) try: fd = urllib2.urlopen(req, data=data) finally: - if old_timeout != timeout and api_host_options['sslcertck'] == 0: + if old_timeout != timeout and not api_host_options['sslcertck']: socket.setdefaulttimeout(old_timeout) if hasattr(conf.cookiejar, 'save'): conf.cookiejar.save(ignore_discard=True)