diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-15 15:42:48 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-15 15:42:48 +0200 |
commit | 92b7b49f6964f57a7d6fc4473645c993cfa4ba52 (patch) | |
tree | eab13c93ccaa8261e185c009c627f916b80ea221 /decoders | |
parent | 4045d68426fdc10ed3a0ac02d4bc353b37f1f252 (diff) | |
download | libsigrokdecode-92b7b49f6964f57a7d6fc4473645c993cfa4ba52.tar.gz libsigrokdecode-92b7b49f6964f57a7d6fc4473645c993cfa4ba52.zip |
Use consistent __init__() format across all PDs.
The previous **kwargs some PDs had is not actually ever used, so drop it.
Diffstat (limited to 'decoders')
57 files changed, 57 insertions, 57 deletions
diff --git a/decoders/adns5020/pd.py b/decoders/adns5020/pd.py index 29b6397..972227e 100644 --- a/decoders/adns5020/pd.py +++ b/decoders/adns5020/pd.py @@ -59,7 +59,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (2,)), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_cmd, self.es_cmd = 0, 0 self.mosi_bytes = [] diff --git a/decoders/am230x/pd.py b/decoders/am230x/pd.py index 2b54cde..483dc9b 100644 --- a/decoders/am230x/pd.py +++ b/decoders/am230x/pd.py @@ -123,7 +123,7 @@ class Decoder(srd.Decoder): checksum += self.bits2num(bitlist[i-8:i]) return checksum % 256 - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.reset() diff --git a/decoders/arm_etmv3/pd.py b/decoders/arm_etmv3/pd.py index 0083fdb..367ceb8 100644 --- a/decoders/arm_etmv3/pd.py +++ b/decoders/arm_etmv3/pd.py @@ -170,7 +170,7 @@ class Decoder(srd.Decoder): 'default': 'alternative', 'values': ('alternative', 'original')}, ) - def __init__(self, **kwargs): + def __init__(self): self.buf = [] self.syncbuf = [] self.prevsample = 0 diff --git a/decoders/arm_itm/pd.py b/decoders/arm_itm/pd.py index f6a0212..384999c 100644 --- a/decoders/arm_itm/pd.py +++ b/decoders/arm_itm/pd.py @@ -80,7 +80,7 @@ class Decoder(srd.Decoder): ('function', 'Current function', (11,)), ) - def __init__(self, **kwargs): + def __init__(self): self.buf = [] self.syncbuf = [] self.swpackets = {} diff --git a/decoders/arm_tpiu/pd.py b/decoders/arm_tpiu/pd.py index 02b7ad2..cf5e875 100644 --- a/decoders/arm_tpiu/pd.py +++ b/decoders/arm_tpiu/pd.py @@ -42,7 +42,7 @@ class Decoder(srd.Decoder): ('data', 'Stream data', (1,)), ) - def __init__(self, **kwargs): + def __init__(self): self.buf = [] self.syncbuf = [] self.prevsample = 0 diff --git a/decoders/aud/pd.py b/decoders/aud/pd.py index 6be1f83..a5330f9 100644 --- a/decoders/aud/pd.py +++ b/decoders/aud/pd.py @@ -46,7 +46,7 @@ class Decoder(srd.Decoder): ('dest', 'Destination address'), ) - def __init__(self, **kwargs): + def __init__(self): self.ncnt = 0 self.nmax = 0 self.addr = 0 diff --git a/decoders/avr_isp/pd.py b/decoders/avr_isp/pd.py index 0914b5b..16e3d70 100644 --- a/decoders/avr_isp/pd.py +++ b/decoders/avr_isp/pd.py @@ -51,7 +51,7 @@ class Decoder(srd.Decoder): ('dev', 'Device', (9,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.mosi_bytes, self.miso_bytes = [], [] self.ss_cmd, self.es_cmd = 0, 0 diff --git a/decoders/can/pd.py b/decoders/can/pd.py index ffc3652..c92877b 100644 --- a/decoders/can/pd.py +++ b/decoders/can/pd.py @@ -64,7 +64,7 @@ class Decoder(srd.Decoder): ('fields', 'Fields', tuple(range(15)) + (16,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.reset_variables() diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index cbdfa87..4f956aa 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -65,7 +65,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (19,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.state = 'WAIT FOR RISING EDGE' self.oldpins = None diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index cb5fc13..6d862af 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -75,7 +75,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (28,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.hours = -1 self.minutes = -1 diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index ae2f839..389fbda 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -90,7 +90,7 @@ class Decoder(srd.Decoder): ('fields', 'Fields', (0,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = None # Received data items, used as an index into samplenum/data self.cnt = 0 diff --git a/decoders/eeprom24xx/pd.py b/decoders/eeprom24xx/pd.py index 386431e..73269a6 100644 --- a/decoders/eeprom24xx/pd.py +++ b/decoders/eeprom24xx/pd.py @@ -73,7 +73,7 @@ class Decoder(srd.Decoder): ('binary', 'Binary'), ) - def __init__(self, **kwargs): + def __init__(self): self.reset() def start(self): diff --git a/decoders/em4100/pd.py b/decoders/em4100/pd.py index 4f2751b..d47b43e 100644 --- a/decoders/em4100/pd.py +++ b/decoders/em4100/pd.py @@ -62,7 +62,7 @@ class Decoder(srd.Decoder): ('tags', 'Tags', (9,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.oldpin = None self.last_samplenum = None diff --git a/decoders/guess_bitrate/pd.py b/decoders/guess_bitrate/pd.py index 250d519..92d3520 100644 --- a/decoders/guess_bitrate/pd.py +++ b/decoders/guess_bitrate/pd.py @@ -42,7 +42,7 @@ class Decoder(srd.Decoder): def putx(self, data): self.put(self.ss_edge, self.samplenum, self.out_ann, data) - def __init__(self, **kwargs): + def __init__(self): self.olddata = None self.ss_edge = None self.first_transition = True diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 2b8b302..a056ef5 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -108,7 +108,7 @@ class Decoder(srd.Decoder): ('data-write', 'Data write'), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.ss = self.es = self.ss_byte = -1 self.samplenum = None diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index 68b75a0..5e83a21 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -30,7 +30,7 @@ class Decoder(srd.Decoder): inputs = ['i2c'] outputs = [] # TODO: Only known at run-time. - def __init__(self, **kwargs): + def __init__(self): self.packets = [] # Local cache of I²C packets self.slaves = [] # List of known slave addresses self.stream = -1 # Current output stream diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 3c02a2e..c3f148f 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -38,7 +38,7 @@ class Decoder(srd.Decoder): 'values': ('read', 'write', 'both')} ) - def __init__(self, **kwargs): + def __init__(self): self.curslave = -1 self.curdirection = None self.packets = [] # Local cache of I²C packets diff --git a/decoders/i2s/pd.py b/decoders/i2s/pd.py index 6b94c10..3287a72 100644 --- a/decoders/i2s/pd.py +++ b/decoders/i2s/pd.py @@ -59,7 +59,7 @@ class Decoder(srd.Decoder): ('wav', 'WAV file'), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.oldsck = 1 self.oldws = 1 diff --git a/decoders/ir_nec/pd.py b/decoders/ir_nec/pd.py index d14c7d3..8c589fa 100644 --- a/decoders/ir_nec/pd.py +++ b/decoders/ir_nec/pd.py @@ -99,7 +99,7 @@ class Decoder(srd.Decoder): [11, ['%s: %s' % (dev, btn[0]), '%s: %s' % (dev, btn[1]), '%s' % btn[1]]]) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.ss_bit = self.ss_start = self.ss_other_edge = self.ss_remote = 0 self.data = self.count = self.active = self.old_ir = None diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index e1dd42f..ae20d3a 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -56,7 +56,7 @@ class Decoder(srd.Decoder): ('fields', 'Fields', (1, 2, 3, 4, 5, 6)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.samplenum = None self.edges, self.bits, self.ss_es_bits = [], [], [] diff --git a/decoders/jitter/pd.py b/decoders/jitter/pd.py index 6dbc27a..c3579a8 100644 --- a/decoders/jitter/pd.py +++ b/decoders/jitter/pd.py @@ -63,7 +63,7 @@ class Decoder(srd.Decoder): ('ascii-float', 'Jitter values as newline-separated ASCII floats'), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'CLK' self.samplerate = None self.oldpin = None diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index aaa9b6a..83d4b28 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -88,7 +88,7 @@ class Decoder(srd.Decoder): ('states', 'States', tuple(range(15 + 1))), ) - def __init__(self, **kwargs): + def __init__(self): # self.state = 'TEST-LOGIC-RESET' self.state = 'RUN-TEST/IDLE' self.oldstate = None diff --git a/decoders/jtag_stm32/pd.py b/decoders/jtag_stm32/pd.py index bc3a4c7..ff5bb77 100644 --- a/decoders/jtag_stm32/pd.py +++ b/decoders/jtag_stm32/pd.py @@ -156,7 +156,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (3,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.samplenums = None diff --git a/decoders/lm75/pd.py b/decoders/lm75/pd.py index 6b2bfa8..50e3c91 100644 --- a/decoders/lm75/pd.py +++ b/decoders/lm75/pd.py @@ -62,7 +62,7 @@ class Decoder(srd.Decoder): ('warnings', 'Human-readable warnings'), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.reg = 0x00 # Currently selected register self.databytes = [] diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py index 5e25db4..9368394 100644 --- a/decoders/lpc/pd.py +++ b/decoders/lpc/pd.py @@ -136,7 +136,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (0,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.oldlclk = -1 self.samplenum = 0 diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index 229331f..c7ff7df 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -48,7 +48,7 @@ class Decoder(srd.Decoder): ('text', 'Human-readable text'), ) - def __init__(self, **kwargs): + def __init__(self): self.trn_beg = 0 self.trn_end = 0 self.state = 'ROM' diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index 5915976..1616af1 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -37,7 +37,7 @@ class Decoder(srd.Decoder): ('text-verbose', 'Human-readable text (verbose)'), ) - def __init__(self, **kwargs): + def __init__(self): self.cmd = [] self.state = 'IDLE' self.ss = None diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index aa1ead5..0a3abba 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -34,7 +34,7 @@ class Decoder(srd.Decoder): ('kelvin', 'Temperature in Kelvin'), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IGNORE START REPEAT' self.data = [] diff --git a/decoders/modbus/pd.py b/decoders/modbus/pd.py index 1942e18..3420f99 100644 --- a/decoders/modbus/pd.py +++ b/decoders/modbus/pd.py @@ -846,7 +846,7 @@ class Decoder(srd.Decoder): 'values': ('RX', 'TX')}, ) - def __init__(self, **kwargs): + def __init__(self): self.ADUSc = None # Start off with empty slave -> client ADU. self.ADUCs = None # Start off with empty client -> slave ADU. diff --git a/decoders/mrf24j40/pd.py b/decoders/mrf24j40/pd.py index 6885054..8ef7017 100644 --- a/decoders/mrf24j40/pd.py +++ b/decoders/mrf24j40/pd.py @@ -43,7 +43,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (4,)), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_cmd, self.es_cmd = 0, 0 self.mosi_bytes = [] self.miso_bytes = [] diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index 962f963..832eb06 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -72,7 +72,7 @@ class Decoder(srd.Decoder): ('text', 'Human-readable text'), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' def start(self): diff --git a/decoders/nrf24l01/pd.py b/decoders/nrf24l01/pd.py index 2337d4b..d46eea4 100644 --- a/decoders/nrf24l01/pd.py +++ b/decoders/nrf24l01/pd.py @@ -94,7 +94,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (ann_warn,)), ) - def __init__(self, **kwargs): + def __init__(self): self.next() self.requirements_met = True self.cs_was_released = False diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py index 0861cba..48a7099 100644 --- a/decoders/nunchuk/pd.py +++ b/decoders/nunchuk/pd.py @@ -47,7 +47,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (14,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.sx = self.sy = self.ax = self.ay = self.az = self.bz = self.bc = -1 self.databytecount = 0 diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py index 2be0242..bd64aa1 100644 --- a/decoders/onewire_link/pd.py +++ b/decoders/onewire_link/pd.py @@ -93,7 +93,7 @@ class Decoder(srd.Decoder): def putrs(self, data): self.put(self.rise, self.samplenum, self.out_ann, data) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.samplenum = 0 self.state = 'WAIT FOR FALLING EDGE' diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py index bddc4a8..1a7567a 100644 --- a/decoders/onewire_network/pd.py +++ b/decoders/onewire_network/pd.py @@ -45,7 +45,7 @@ class Decoder(srd.Decoder): ('text', 'Human-readable text'), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_block = 0 self.es_block = 0 self.state = 'COMMAND' diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index b70defc..a8938c6 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -39,7 +39,7 @@ class Decoder(srd.Decoder): ('warnings', 'Human-readable warnings'), ) - def __init__(self, **kwargs): + def __init__(self): self.cmd = ['', ''] self.ss_block = None diff --git a/decoders/pwm/pd.py b/decoders/pwm/pd.py index add7610..6ca46b1 100644 --- a/decoders/pwm/pd.py +++ b/decoders/pwm/pd.py @@ -49,7 +49,7 @@ class Decoder(srd.Decoder): ('raw', 'RAW file'), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_block = self.es_block = None self.first_transition = True self.first_samplenum = None diff --git a/decoders/qi/pd.py b/decoders/qi/pd.py index cba4ce9..6db4bf5 100644 --- a/decoders/qi/pd.py +++ b/decoders/qi/pd.py @@ -73,7 +73,7 @@ class Decoder(srd.Decoder): ('packets', 'Packets', (5, 6, 7)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.reset_variables() diff --git a/decoders/rfm12/pd.py b/decoders/rfm12/pd.py index 9bcbd9d..46e5b07 100644 --- a/decoders/rfm12/pd.py +++ b/decoders/rfm12/pd.py @@ -43,7 +43,7 @@ class Decoder(srd.Decoder): ('interpretation', 'Interpretation', (5,)), ) - def __init__(self, **kwargs): + def __init__(self): self.mosi_bytes, self.miso_bytes = [], [] self.mosi_bits, self.miso_bits = [], [] self.row_pos = [0, 0, 0] diff --git a/decoders/rgb_led_spi/pd.py b/decoders/rgb_led_spi/pd.py index dc08750..9a465ad 100644 --- a/decoders/rgb_led_spi/pd.py +++ b/decoders/rgb_led_spi/pd.py @@ -33,7 +33,7 @@ class Decoder(srd.Decoder): ('rgb', 'RGB values'), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_cmd, self.es_cmd = 0, 0 self.mosi_bytes = [] diff --git a/decoders/rgb_led_ws281x/pd.py b/decoders/rgb_led_ws281x/pd.py index e317b71..439f736 100644 --- a/decoders/rgb_led_ws281x/pd.py +++ b/decoders/rgb_led_ws281x/pd.py @@ -46,7 +46,7 @@ class Decoder(srd.Decoder): ('rgb', 'RGB', (2,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.oldpin = None self.packet_ss = None diff --git a/decoders/rtc8564/pd.py b/decoders/rtc8564/pd.py index 258ec27..4bcd096 100644 --- a/decoders/rtc8564/pd.py +++ b/decoders/rtc8564/pd.py @@ -52,7 +52,7 @@ class Decoder(srd.Decoder): ('date-time', 'Date/time', (9, 10)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.hours = -1 self.minutes = -1 diff --git a/decoders/sdcard_sd/pd.py b/decoders/sdcard_sd/pd.py index 8382224..442a563 100644 --- a/decoders/sdcard_sd/pd.py +++ b/decoders/sdcard_sd/pd.py @@ -61,7 +61,7 @@ class Decoder(srd.Decoder): ('cmd', 'Commands', tuple(range(128))), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'GET COMMAND TOKEN' self.token = [] self.oldpins = None diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index ad6329b..e069b6e 100644 --- a/decoders/sdcard_spi/pd.py +++ b/decoders/sdcard_spi/pd.py @@ -46,7 +46,7 @@ class Decoder(srd.Decoder): ('cmd-reply', 'Commands/replies', tuple(range(134))), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.ss, self.es = 0, 0 self.ss_bit, self.es_bit = 0, 0 diff --git a/decoders/spdif/pd.py b/decoders/spdif/pd.py index e6977e2..da3ca28 100644 --- a/decoders/spdif/pd.py +++ b/decoders/spdif/pd.py @@ -58,7 +58,7 @@ class Decoder(srd.Decoder): def puty(self, data): self.put(self.ss_edge, self.samplenum, self.out_ann, data) - def __init__(self, **kwargs): + def __init__(self): self.state = 'GET FIRST PULSE WIDTH' self.olddata = None self.ss_edge = None diff --git a/decoders/spiflash/pd.py b/decoders/spiflash/pd.py index 0dfa035..1e3b916 100644 --- a/decoders/spiflash/pd.py +++ b/decoders/spiflash/pd.py @@ -73,7 +73,7 @@ class Decoder(srd.Decoder): 'values': tuple(chips.keys())}, ) - def __init__(self, **kwargs): + def __init__(self): self.state = None self.cmdstate = 1 self.addr = 0 diff --git a/decoders/stepper_motor/pd.py b/decoders/stepper_motor/pd.py index 1527d48..8a1c2e1 100644 --- a/decoders/stepper_motor/pd.py +++ b/decoders/stepper_motor/pd.py @@ -50,7 +50,7 @@ class Decoder(srd.Decoder): ('position', 'Position', (1,)), ) - def __init__(self, **kwargs): + def __init__(self): self.oldstep = None self.prev_step_ss = None self.pos = 0 diff --git a/decoders/swd/pd.py b/decoders/swd/pd.py index d53d149..3414c35 100644 --- a/decoders/swd/pd.py +++ b/decoders/swd/pd.py @@ -92,7 +92,7 @@ class Decoder(srd.Decoder): ('parity', 'PARITY'), ) - def __init__(self, **kwargs): + def __init__(self): # SWD data/clock state self.state = 'UNKNOWN' self.oldclk = -1 diff --git a/decoders/t55xx/pd.py b/decoders/t55xx/pd.py index 5e47d3e..57838f0 100644 --- a/decoders/t55xx/pd.py +++ b/decoders/t55xx/pd.py @@ -66,7 +66,7 @@ class Decoder(srd.Decoder): ('decode', 'Decode', (10,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.oldpin = None self.last_samplenum = None diff --git a/decoders/tca6408a/pd.py b/decoders/tca6408a/pd.py index 1f90245..a794547 100644 --- a/decoders/tca6408a/pd.py +++ b/decoders/tca6408a/pd.py @@ -41,7 +41,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (2,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.chip = -1 diff --git a/decoders/timing/pd.py b/decoders/timing/pd.py index 5e2aaa7..e0795f3 100644 --- a/decoders/timing/pd.py +++ b/decoders/timing/pd.py @@ -55,7 +55,7 @@ class Decoder(srd.Decoder): ('time', 'Time', (0,)), ) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.oldpin = None self.last_samplenum = None diff --git a/decoders/tlc5620/pd.py b/decoders/tlc5620/pd.py index df42bfb..317e4ed 100644 --- a/decoders/tlc5620/pd.py +++ b/decoders/tlc5620/pd.py @@ -71,7 +71,7 @@ class Decoder(srd.Decoder): ('errors', 'Errors', (9,)), ) - def __init__(self, **kwargs): + def __init__(self): self.oldpins = self.oldclk = self.oldload = self.oldldac = None self.bits = [] self.ss_dac_first = None diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index db1065d..0e6e548 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -160,7 +160,7 @@ class Decoder(srd.Decoder): s, halfbit = self.startsample[rxtx], self.bit_width / 2.0 self.put(s - floor(halfbit), self.samplenum + ceil(halfbit), self.out_binary, data) - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.samplenum = 0 self.frame_start = [-1, -1] diff --git a/decoders/usb_power_delivery/pd.py b/decoders/usb_power_delivery/pd.py index ad28d97..c908e53 100644 --- a/decoders/usb_power_delivery/pd.py +++ b/decoders/usb_power_delivery/pd.py @@ -439,7 +439,7 @@ class Decoder(srd.Decoder): self.putwarn('No start of packet found', 'XXX') return -1 # No Start Of Packet - def __init__(self, **kwargs): + def __init__(self): self.samplerate = None self.idx = 0 self.packet_seq = 0 diff --git a/decoders/wiegand/pd.py b/decoders/wiegand/pd.py index 1f03651..2352fbc 100644 --- a/decoders/wiegand/pd.py +++ b/decoders/wiegand/pd.py @@ -48,7 +48,7 @@ class Decoder(srd.Decoder): ('state', 'Stream state', (1,)), ) - def __init__(self, **kwargs): + def __init__(self): self._samples_per_bit = 10 self._d0_prev = None diff --git a/decoders/xfp/pd.py b/decoders/xfp/pd.py index 1e971e6..26f3311 100644 --- a/decoders/xfp/pd.py +++ b/decoders/xfp/pd.py @@ -36,7 +36,7 @@ class Decoder(srd.Decoder): ('fields', 'XFP structure fields'), ) - def __init__(self, **kwargs): + def __init__(self): # Received data items, used as an index into samplenum/data self.cnt = -1 # Start/end sample numbers per data item diff --git a/decoders/z80/pd.py b/decoders/z80/pd.py index e0d7ae4..a8acf53 100644 --- a/decoders/z80/pd.py +++ b/decoders/z80/pd.py @@ -110,7 +110,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (Ann.WARN,)) ) - def __init__(self, **kwargs): + def __init__(self): self.prev_cycle = Cycle.NONE self.op_state = self.state_IDLE |