##// END OF EJS Templates
sslutil: abort when ssl module is needed but not found...
Mads Kiilerich -
r15160:b2d44003 default
parent child Browse files
Show More
@@ -22,6 +22,8 b' except ImportError:'
22
22
23 def ssl_wrap_socket(sock, key_file, cert_file,
23 def ssl_wrap_socket(sock, key_file, cert_file,
24 cert_reqs=CERT_REQUIRED, ca_certs=None):
24 cert_reqs=CERT_REQUIRED, ca_certs=None):
25 if not util.safehasattr(socket, 'ssl'):
26 raise util.Abort(_('Python SSL support not found'))
25 if ca_certs:
27 if ca_certs:
26 raise util.Abort(_(
28 raise util.Abort(_(
27 'certificate checking requires Python 2.6'))
29 'certificate checking requires Python 2.6'))
General Comments 0
You need to be logged in to leave comments. Login now