未验证 提交 6436ac0d 编写于 作者: R Roger Light 提交者: GitHub

Merge pull request #611 from BertKleewein/1.6-fix-py27

Add BlockingIOError definition to allow Paho 1.6.0 to load with Python 2.7
......@@ -81,6 +81,12 @@ if platform.system() == 'Windows':
else:
EAGAIN = errno.EAGAIN
# Python 2.7 does not have BlockingIOError. Fall back to IOError
try:
BlockingIOError
except NameError:
BlockingIOError = IOError
MQTTv31 = 3
MQTTv311 = 4
MQTTv5 = 5
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册