Skip to content

Commit be1ea86

Browse files
author
Jim Bennett
committed
black formatting
1 parent b7cbb44 commit be1ea86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_minimqtt.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ def connect(self, clean_session=True):
240240
broker, port = broker.split(":", 1)
241241
port = int(port)
242242

243-
addr = _the_sock.getaddrinfo(broker, self.port, 0, _the_sock.SOCK_STREAM)[
244-
0
245-
]
243+
addr = _the_sock.getaddrinfo(broker, self.port, 0, _the_sock.SOCK_STREAM)[0]
246244
self._sock = _the_sock.socket(addr[0], addr[1], addr[2])
247245
self._sock.settimeout(15)
248246
if self.port == 8883:

0 commit comments

Comments
 (0)