check built-in SSL more effectively
This commit is contained in:
parent
aa0b2d6d70
commit
3b2aafe004
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ try:
|
|||
import socket
|
||||
assert ssl
|
||||
assert socket.ssl
|
||||
assert ssl.OPENSSL_VERSION
|
||||
HAS_SSL = True
|
||||
except (ImportError, AttributeError):
|
||||
from subprocess import Popen
|
||||
|
|
Loading…
Reference in a new issue