From a9f7935a3db8da5aa9b137cf758ad1c57f31cae9 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 4 May 2016 19:15:06 +0200 Subject: Consistently use ' instead of " for strings in all PDs. --- decoders/arm_tpiu/pd.py | 4 ++-- decoders/edid/pd.py | 4 ++-- decoders/jitter/pd.py | 12 ++++++------ decoders/usb_power_delivery/__init__.py | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'decoders') diff --git a/decoders/arm_tpiu/pd.py b/decoders/arm_tpiu/pd.py index ba01aa0..02b7ad2 100644 --- a/decoders/arm_tpiu/pd.py +++ b/decoders/arm_tpiu/pd.py @@ -58,13 +58,13 @@ class Decoder(srd.Decoder): if self.stream != stream: if self.stream != 0: self.put(self.stream_ss, ss, self.out_ann, - [0, ["Stream %d" % self.stream, "S%d" % self.stream]]) + [0, ['Stream %d' % self.stream, 'S%d' % self.stream]]) self.stream = stream self.stream_ss = ss def emit_byte(self, ss, es, byte): if self.stream == self.options['stream']: - self.put(ss, es, self.out_ann, [1, ["0x%02x" % byte]]) + self.put(ss, es, self.out_ann, [1, ['0x%02x' % byte]]) self.put(ss, es, self.out_python, ['DATA', 0, (byte, [])]) def process_frame(self, buf): diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index b154de7..ae2f839 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -140,10 +140,10 @@ class Decoder(srd.Decoder): [ANN_SECTIONS, ['EDID Version']]) self.put(self.sn[OFF_VERSION][0], self.sn[OFF_VERSION][1], self.out_ann, [ANN_FIELDS, - ["Version %d" % self.cache[-2]]]) + ['Version %d' % self.cache[-2]]]) self.put(self.sn[OFF_VERSION+1][0], self.sn[OFF_VERSION+1][1], self.out_ann, [ANN_FIELDS, - [ "Revision %d" % self.cache[-1]]]) + ['Revision %d' % self.cache[-1]]]) elif self.cnt == OFF_CHROM: self.put(self.sn[OFF_BASIC][0], es, self.out_ann, [ANN_SECTIONS, ['Basic display']]) diff --git a/decoders/jitter/pd.py b/decoders/jitter/pd.py index ba1bffa..6dbc27a 100644 --- a/decoders/jitter/pd.py +++ b/decoders/jitter/pd.py @@ -91,17 +91,17 @@ class Decoder(srd.Decoder): def putx(self, delta): # Adjust granularity. if delta == 0 or delta >= 1: - delta_s = "%.1fs" % (delta) + delta_s = '%.1fs' % (delta) elif delta <= 1e-12: - delta_s = "%.1ffs" % (delta * 1e15) + delta_s = '%.1ffs' % (delta * 1e15) elif delta <= 1e-9: - delta_s = "%.1fps" % (delta * 1e12) + delta_s = '%.1fps' % (delta * 1e12) elif delta <= 1e-6: - delta_s = "%.1fns" % (delta * 1e9) + delta_s = '%.1fns' % (delta * 1e9) elif delta <= 1e-3: - delta_s = "%.1fμs" % (delta * 1e6) + delta_s = '%.1fμs' % (delta * 1e6) else: - delta_s = "%.1fms" % (delta * 1e3) + delta_s = '%.1fms' % (delta * 1e3) self.put(self.clk_start, self.sig_start, self.out_ann, [0, [delta_s]]) diff --git a/decoders/usb_power_delivery/__init__.py b/decoders/usb_power_delivery/__init__.py index 669fb48..4ba626a 100644 --- a/decoders/usb_power_delivery/__init__.py +++ b/decoders/usb_power_delivery/__init__.py @@ -18,8 +18,8 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -""" -USB Power Delivery - baseband protocol decoder / checker -""" +''' +USB Power Delivery - baseband protocol decoder / checker. +''' from .pd import * -- cgit v1.2.3-70-g09d2