parent
314b2915d0
commit
2ea74188da
@ -0,0 +1,25 @@
|
||||
diff -rup urlgrabber-3.0.0-orig/urlgrabber/keepalive.py urlgrabber-3.0.0/urlgrabber/keepalive.py
|
||||
--- urlgrabber-3.0.0-orig/urlgrabber/keepalive.py 2006-07-20 16:15:58.000000000 -0400
|
||||
+++ urlgrabber-3.0.0/urlgrabber/keepalive.py 2008-07-10 17:37:06.000000000 -0400
|
||||
@@ -328,12 +328,16 @@ class HTTPHandler(KeepAliveHandler, urll
|
||||
def http_open(self, req):
|
||||
return self.do_open(HTTPConnection, req)
|
||||
|
||||
-class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
|
||||
- def __init__(self):
|
||||
- KeepAliveHandler.__init__(self)
|
||||
+# If SSL isn't available, don't make urlgrabber completely unusable
|
||||
+try:
|
||||
+ class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
|
||||
+ def __init__(self):
|
||||
+ KeepAliveHandler.__init__(self)
|
||||
|
||||
- def https_open(self, req):
|
||||
- return self.do_open(HTTPSConnection, req)
|
||||
+ def https_open(self, req):
|
||||
+ return self.do_open(HTTPSConnection, req)
|
||||
+except:
|
||||
+ pass
|
||||
|
||||
class HTTPResponse(httplib.HTTPResponse):
|
||||
# we need to subclass HTTPResponse in order to
|
Loading…
Reference in new issue