Skip to content

Commit

Permalink
Fix Ruff complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 21, 2023
1 parent f2d987a commit 730546b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import logging
import string
import struct
import sys
import threading
import time
import uuid
Expand Down Expand Up @@ -3550,7 +3549,6 @@ def _handle_pubackcomp(self, cmd):
return MQTT_ERR_SUCCESS

def _handle_on_message(self, message):
matched = False

try:
topic = message.topic
Expand Down
1 change: 0 additions & 1 deletion src/paho/mqtt/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"""

import struct
import sys

from .packettypes import PacketTypes

Expand Down
1 change: 0 additions & 1 deletion src/paho/mqtt/reasoncodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*******************************************************************
"""

import sys

from .packettypes import PacketTypes

Expand Down
2 changes: 1 addition & 1 deletion test/paho_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def gen_connack(flags=0, rc=0, proto_ver=4, properties=b"", property_helper=True

packet = struct.pack('!BBBB', 32, 2+len(properties), flags, rc) + properties
else:
packet = struct.pack('!BBBB', 32, 2, flags, rc);
packet = struct.pack('!BBBB', 32, 2, flags, rc)

return packet

Expand Down

0 comments on commit 730546b

Please sign in to comment.