Skip to content

Commit

Permalink
Fix python 2.7
Browse files Browse the repository at this point in the history
Signed-off-by: Bert Kleewein <[email protected]>
  • Loading branch information
BertKleewein committed Oct 20, 2021
1 parent 3d47d37 commit 59a684e
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 59a684e

Please sign in to comment.