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
|
import socket
|
||||||
assert ssl
|
assert ssl
|
||||||
assert socket.ssl
|
assert socket.ssl
|
||||||
|
assert ssl.OPENSSL_VERSION
|
||||||
HAS_SSL = True
|
HAS_SSL = True
|
||||||
except (ImportError, AttributeError):
|
except (ImportError, AttributeError):
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
|
|
Loading…
Reference in a new issue