@@ -235,11 +235,11 @@ def read_pulses(
235
235
class GenericTransmit :
236
236
"""Generic infrared transmit class that handles encoding.
237
237
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
243
243
"""
244
244
245
245
def __init__ (self , header , one , zero , trail , * , debug = False ):
@@ -263,9 +263,9 @@ def transmit(self, pulseout, data, *, repeat=0, delay=0, nbits=None):
263
263
if nbits is not None and nbits < bits_to_send :
264
264
bits_to_send = nbits
265
265
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
+ )
269
269
270
270
durations [0 ] = self .header [0 ]
271
271
durations [1 ] = self .header [1 ]
0 commit comments