Skip to content

Commit cb10cf1

Browse files
committed
umqtt.simple: Remove unused import and commented debug prints.
The import is commented rather than removed. as all its uses have also been commented out. Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com> Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent 4fa59bd commit cb10cf1

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎micropython/umqtt.simple/umqtt/simple.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import socket
22
import struct
3-
from binascii import hexlify
43

54

65
class MQTTException(Exception):
@@ -107,7 +106,6 @@ def connect(self, clean_session=True, timeout=None):
107106

108107
self.sock.write(premsg, i + 2)
109108
self.sock.write(msg)
110-
# print(hex(len(msg)), hexlify(msg, ":"))
111109
self._send_str(self.client_id)
112110
if self.lw_topic:
113111
self._send_str(self.lw_topic)
@@ -138,7 +136,6 @@ def publish(self, topic, msg, retain=False, qos=0):
138136
sz += 2
139137
assert sz < 2097152
140138
i = _encode_len(pkt, sz)
141-
# print(hex(len(pkt)), hexlify(pkt, ":"))
142139
self.sock.write(pkt, i + 1)
143140
self._send_str(topic)
144141
if qos > 0:

0 commit comments

Comments
 (0)