mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
better check for SSL support using socket.ssl
This commit is contained in:
parent
097027a3d4
commit
e1e8861a6e
@ -35,8 +35,10 @@ LOCK = threading.RLock()
|
||||
# check if we have SSL support
|
||||
try:
|
||||
import ssl
|
||||
import socket
|
||||
socket.ssl
|
||||
HAS_SSL = True
|
||||
except ImportError:
|
||||
except (ImportError, AttributeError):
|
||||
from subprocess import Popen
|
||||
|
||||
if HAS_SSL:
|
||||
|
Loading…
Reference in New Issue
Block a user