Skip to content

Commit 02c0449

Browse files
authored
Merge pull request #67 from tekktrik/dev/fix-errors
Fix pylint errors
2 parents c59a014 + c3ac58c commit 02c0449

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)