From 0357b1237ef248a2b1f4fbb7ed995df73594c7c3 Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 19 Dec 2003 10:23:18 +0000 Subject: [PATCH] fix https support test git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1107 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/HttpUrlData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/HttpUrlData.py b/linkcheck/HttpUrlData.py index 38612d4b..5168cc0d 100644 --- a/linkcheck/HttpUrlData.py +++ b/linkcheck/HttpUrlData.py @@ -16,14 +16,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -import urlparse, sys, time, re, httplib2, zlib, gzip, robotparser2 +import urlparse, sys, time, re, httplib2, zlib, gzip, robotparser2, socket from urllib import quote, unquote from cStringIO import StringIO import Config, i18n from debug import * from ProxyUrlData import ProxyUrlData from UrlData import ExcList, GetUrlDataFrom -supportHttps = hasattr(httplib2, "HTTPSConnection") +supportHttps = hasattr(httplib2, "HTTPSConnection") and hasattr(socket, "ssl") ExcList.extend([httplib2.error,])