Skip to content

Commit c3ac58c

Browse files
authored
Fix pylint errors
1 parent c59a014 commit c3ac58c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_espatcontrol/adafruit_espatcontrol.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,14 @@ def socket_receive(self, timeout: int = 5) -> bytearray:
340340
break # We've received all the data. Don't wait until timeout.
341341
else: # no data waiting
342342
self.hw_flow(True) # start the floooow
343-
totalsize = sum([len(x) for x in bundle])
343+
totalsize = sum(len(x) for x in bundle)
344344
ret = bytearray(totalsize)
345345
i = 0
346346
for x in bundle:
347347
for char in x:
348348
ret[i] = char
349349
i += 1
350-
for x in bundle:
351-
del x
350+
del bundle
352351
gc.collect()
353352
return ret
354353

0 commit comments

Comments
 (0)