Skip to content

Commit

Permalink
Merge pull request #611 from BertKleewein/1.6-fix-py27
Browse files Browse the repository at this point in the history
Add BlockingIOError definition to allow Paho 1.6.0 to load with Python 2.7
  • Loading branch information
ralight committed Oct 20, 2021
2 parents 3d47d37 + 59a684e commit 6436ac0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
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
Expand Down

0 comments on commit 6436ac0

Please sign in to comment.