diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-11-27 22:17:54 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-11-27 22:20:01 +0100 |
commit | e100d51ec0909db8f93c837ea1fd92a08461b781 (patch) | |
tree | fab068f9eeec5106bd17377084b0757af2943e04 /decoders/transitioncounter.py | |
parent | c4262fd6b2f8ef540b8cc93ac61956d89062d2be (diff) | |
download | libsigrokdecode-e100d51ec0909db8f93c837ea1fd92a08461b781.tar.gz libsigrokdecode-e100d51ec0909db8f93c837ea1fd92a08461b781.zip |
srd: Python: Consistently use single quotes for strings.
Diffstat (limited to 'decoders/transitioncounter.py')
-rw-r--r-- | decoders/transitioncounter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py index f401b15..d9956c7 100644 --- a/decoders/transitioncounter.py +++ b/decoders/transitioncounter.py @@ -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) |