diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-04 19:15:06 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-09 12:02:36 +0200 |
commit | a9f7935a3db8da5aa9b137cf758ad1c57f31cae9 (patch) | |
tree | e5a415f3fa3bad021de3cf1798499fadab310936 /decoders | |
parent | ada4c3a342cdfc40bb83a927ece536cc984e27be (diff) | |
download | libsigrokdecode-a9f7935a3db8da5aa9b137cf758ad1c57f31cae9.tar.gz libsigrokdecode-a9f7935a3db8da5aa9b137cf758ad1c57f31cae9.zip |
Consistently use ' instead of " for strings in all PDs.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/arm_tpiu/pd.py | 4 | ||||
-rw-r--r-- | decoders/edid/pd.py | 4 | ||||
-rw-r--r-- | decoders/jitter/pd.py | 12 | ||||
-rw-r--r-- | decoders/usb_power_delivery/__init__.py | 6 |
4 files changed, 13 insertions, 13 deletions
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 * |