Show More
@@ -307,11 +307,13 b' def has_outer_repo():' | |||||
307 | return not matchoutput('hg root 2>&1', |
|
307 | return not matchoutput('hg root 2>&1', | |
308 | r'abort: no repository found', True) |
|
308 | r'abort: no repository found', True) | |
309 |
|
309 | |||
310 |
@check("ssl", "python >= 2.6 ssl module and python OpenSSL" |
|
310 | @check("ssl", ("(python >= 2.6 ssl module and python OpenSSL) " | |
|
311 | "OR python >= 2.7.9 ssl")) | |||
311 | def has_ssl(): |
|
312 | def has_ssl(): | |
312 | try: |
|
313 | try: | |
313 | import ssl |
|
314 | import ssl | |
314 | ssl.wrap_socket # silence unused import warning |
|
315 | if getattr(ssl, 'create_default_context', False): | |
|
316 | return True | |||
315 | import OpenSSL |
|
317 | import OpenSSL | |
316 | OpenSSL.SSL.Context |
|
318 | OpenSSL.SSL.Context | |
317 | return True |
|
319 | return True |
General Comments 0
You need to be logged in to leave comments.
Login now