summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-rw-r--r--decoders/jtag_ejtag/pd.py2
-rw-r--r--decoders/usb_packet/pd.py2
-rw-r--r--decoders/usb_signalling/pd.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py
index e327e89..ceaa114 100644
--- a/decoders/jtag_ejtag/pd.py
+++ b/decoders/jtag_ejtag/pd.py
@@ -223,7 +223,7 @@ class Decoder(srd.Decoder):
self.put(self.ss, self.es, self.out_ann, data)
def put_at(self, ss: int, es: int, data):
- self.put(ss, es, self.out_ann, data);
+ self.put(ss, es, self.out_ann, data)
def start(self):
self.out_ann = self.register(srd.OUTPUT_ANN)
diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py
index 489e58e..3943f98 100644
--- a/decoders/usb_packet/pd.py
+++ b/decoders/usb_packet/pd.py
@@ -147,7 +147,7 @@ def reverse_number(num, count):
out = list(count * '0')
for i in range(0, count):
if num >> i & 1:
- out[i] = '1';
+ out[i] = '1'
return int(''.join(out), 2)
def calc_crc5(bitstr):
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py
index 424117d..a99cfbe 100644
--- a/decoders/usb_signalling/pd.py
+++ b/decoders/usb_signalling/pd.py
@@ -193,7 +193,7 @@ class Decoder(srd.Decoder):
self.put(s, e, self.out_ann, data)
def set_new_target_samplenum(self):
- self.samplepos += self.bitwidth;
+ self.samplepos += self.bitwidth
self.samplenum_target = int(self.samplepos)
self.samplenum_lastedge = self.samplenum_edge
self.samplenum_edge = int(self.samplepos - (self.bitwidth / 2))