Show More
@@ -341,15 +341,11 def has_outer_repo(): | |||
|
341 | 341 | return not matchoutput('hg root 2>&1', |
|
342 | 342 | r'abort: no repository found', True) |
|
343 | 343 | |
|
344 | @check("ssl", ("(python >= 2.6 ssl module and python OpenSSL) " | |
|
345 | "OR python >= 2.7.9 ssl")) | |
|
344 | @check("ssl", "ssl module available") | |
|
346 | 345 | def has_ssl(): |
|
347 | 346 | try: |
|
348 | 347 | import ssl |
|
349 | if getattr(ssl, 'create_default_context', False): | |
|
350 | return True | |
|
351 | import OpenSSL | |
|
352 | OpenSSL.SSL.Context | |
|
348 | ssl.CERT_NONE | |
|
353 | 349 | return True |
|
354 | 350 | except ImportError: |
|
355 | 351 | return False |
General Comments 0
You need to be logged in to leave comments.
Login now