Skip to content

Commit a416791

Browse files
author
Kevin J Walters
committed
Formatting by black.
1 parent 270d99e commit a416791

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

adafruit_irremote.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ def read_pulses(
235235
class GenericTransmit:
236236
"""Generic infrared transmit class that handles encoding.
237237
238-
:param int header: The length of header in microseconds
239-
:param int one: The length of a one in microseconds
240-
:param int zero: The length of a zero in microseconds
241-
:param int trail: The length of the trail in microseconds, set to None to disable
242-
:param bool debug: Enable debug output, default False
238+
:param int header: The length of header in microseconds
239+
:param int one: The length of a one in microseconds
240+
:param int zero: The length of a zero in microseconds
241+
:param int trail: The length of the trail in microseconds, set to None to disable
242+
:param bool debug: Enable debug output, default False
243243
"""
244244

245245
def __init__(self, header, one, zero, trail, *, debug=False):
@@ -263,9 +263,9 @@ def transmit(self, pulseout, data, *, repeat=0, delay=0, nbits=None):
263263
if nbits is not None and nbits < bits_to_send:
264264
bits_to_send = nbits
265265

266-
durations = array.array("H", [0] * (2 +
267-
bits_to_send * 2 +
268-
(0 if self.trail is None else 1)))
266+
durations = array.array(
267+
"H", [0] * (2 + bits_to_send * 2 + (0 if self.trail is None else 1))
268+
)
269269

270270
durations[0] = self.header[0]
271271
durations[1] = self.header[1]

0 commit comments

Comments
 (0)