Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aarni Koskela <akx@iki.fi>
  • Loading branch information
PierreF and akx authored Jan 9, 2024
1 parent 35910e6 commit 5109e92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/paho/mqtt/enums.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import enum


# Error values
class MQTTErrorCode(enum.IntEnum):
MQTT_ERR_AGAIN = -1
MQTT_ERR_SUCCESS = 0
Expand Down Expand Up @@ -46,7 +45,8 @@ class MessageType(enum.IntEnum):
DISCONNECT = 0xE0
AUTH = 0xF0

class PahoLogLevel(enum.IntEnum):

class LogLevel(enum.IntEnum):
MQTT_LOG_INFO = 0x01
MQTT_LOG_NOTICE = 0x02
MQTT_LOG_WARNING = 0x04
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def callback2(client, userdata, msg):
assert userdata['callback2'] == 2


class Test_compatibility:
class TestCompatibility:
"""
Some tests for backward compatibility
"""
Expand Down

0 comments on commit 5109e92

Please sign in to comment.