Skip to content

Commit

Permalink
Merge branch '1.6.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Oct 21, 2021
2 parents 6dfdeba + 1f3cd09 commit 9782ab8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v1.6.1 - 2021-10-21
===================

- Fix Python 2.7 compatilibity.


v1.6.0 - 2021-10-20
===================

Expand Down
2 changes: 1 addition & 1 deletion src/paho/mqtt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.6.0"
__version__ = "1.6.1"


class MQTTException(Exception):
Expand Down
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 9782ab8

Please sign in to comment.