Skip to content

Commit 044d06c

Browse files
committed
pleasing black
1 parent 1cad196 commit 044d06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def publish(self, topic, msg, retain=False, qos=0):
464464
pub_hdr_fixed = bytearray([MQTT_PUB[0] | retain | qos << 1])
465465

466466
# variable header = 2-byte Topic length (big endian)
467-
pub_hdr_var = struct.pack('>H', len(topic))
467+
pub_hdr_var = struct.pack(">H", len(topic))
468468
pub_hdr_var.extend(topic.encode("utf-8")) # Topic name
469469

470470
remaining_length = 2 + len(msg) + len(topic)

0 commit comments

Comments
 (0)