check built-in SSL more effectively

This commit is contained in:
Alan Hamlett 2015-03-24 10:00:53 -07:00
parent aa0b2d6d70
commit 3b2aafe004

View File

@ -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