]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/transitioncounter.py
srd: Python: Consistently use single quotes for strings.
[libsigrokdecode.git] / decoders / transitioncounter.py
index f401b1520d48a8f87d1d769eefb6215c4f0c8b9b..d9956c78fb6ea4eb45e5eb559ec082eedab8352a 100644 (file)
@@ -55,7 +55,7 @@ class Decoder():
         self.falling = [0] * self.channels
 
     def start(self, metadata):
-        self.unitsize = metadata["unitsize"]
+        self.unitsize = metadata['unitsize']
 
     def report(self):
         pass
@@ -65,7 +65,7 @@ class Decoder():
            channel(s) of the signal."""
 
         # We should accept a list of samples and iterate...
-        for sample in sampleiter(data["data"], self.unitsize):
+        for sample in sampleiter(data['data'], self.unitsize):
 
             # TODO: Eliminate the need for ord().
             s = ord(sample.data)