提交 0a8cccc2 编写于 作者: J James Myatt

Remove support for SSL without SSLContext (Fixes #115)

Signed-off-by: NJames Myatt <james@jamesmyatt.co.uk>
上级 37cf9537
此差异已折叠。
......@@ -52,6 +52,6 @@ def check_ssl():
print("WARNING: SSL not available in current environment")
exit(0)
if sys.version < '2.7':
print("WARNING: SSL not supported on Python 2.6")
if not hasattr(ssl, 'SSLContext'):
print("WARNING: SSL without SSLContext is not supported")
exit(0)
......@@ -9,7 +9,7 @@ from struct import *
import paho.mqtt.client as mqtt
if sys.version < '2.7':
if sys.version_info < (2, 7, 9):
print("WARNING: SSL/TLS not supported on Python 2.6")
exit(0)
......
......@@ -9,7 +9,7 @@ from struct import *
import paho.mqtt.client as mqtt
if sys.version_info < (2, 7):
if sys.version_info < (2, 7, 9):
print("WARNING: SSL/TLS not supported on Python 2.6")
exit(0)
......
......@@ -9,7 +9,7 @@ from struct import *
import paho.mqtt.client as mqtt
if sys.version_info < (2, 7):
if sys.version_info < (2, 7, 9):
print("WARNING: SSL/TLS not supported on Python 2.6")
exit(0)
......
......@@ -10,7 +10,7 @@ import ssl
import paho.mqtt.client as mqtt
if sys.version_info < (2, 7):
if sys.version_info < (2, 7, 9):
print("WARNING: SSL/TLS not supported on Python 2.6")
exit(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册