]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/arm_tpiu/pd.py
Consistently use ' instead of " for strings in all PDs.
[libsigrokdecode.git] / decoders / arm_tpiu / pd.py
index 0e07eb4e47c72615157bc8d60d020647c7db7148..02b7ad20460cb3856ce0734d00f6c93cfe1c42d1 100644 (file)
@@ -25,7 +25,7 @@ class Decoder(srd.Decoder):
     id = 'arm_tpiu'
     name = 'ARM TPIU'
     longname = 'ARM Trace Port Interface Unit'
-    desc = 'Filter TPIU formatted trace data into separate data streams.'
+    desc = 'Filter TPIU formatted trace data into separate streams.'
     license = 'gplv2+'
     inputs = ['uart']
     outputs = ['uart'] # Emulate uart output so that arm_itm/arm_etm can stack.
@@ -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):