Skip to content

Commit 525cbfa

Browse files
committed
Implicit length check for pylint.
1 parent 732d1f9 commit 525cbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_irremote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ def read_pulses(self, input_pulses, max_pulse=10000, blocking=True):
201201
If False, will return None if no pulses.
202202
Defaults to True for backwards compatibility
203203
"""
204-
if len(input_pulses) == 0 and not blocking:
204+
if not input_pulses and not blocking:
205205
return None
206206
received = []
207207
while True:
208-
while len(input_pulses) == 0:
208+
while not input_pulses:
209209
pass
210210
while input_pulses:
211211
pulse = input_pulses.popleft()

0 commit comments

Comments
 (0)