diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-19 19:12:56 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-23 18:58:16 +0100 |
commit | 246654246821fcde172c97399e6e8175708e60b5 (patch) | |
tree | 044dcecb776b11252b63eae2b55914bdb1a8e634 /decoders | |
parent | 3c8031b3f543f82a4a357b4987e0ae6273facfcf (diff) | |
download | libsigrokdecode-246654246821fcde172c97399e6e8175708e60b5.tar.gz libsigrokdecode-246654246821fcde172c97399e6e8175708e60b5.zip |
jtag: Use list comprehensions.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/jtag/pd.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index 26ddbac..8eb81c0 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -53,12 +53,6 @@ jtag_states = [ 'SHIFT-IR', 'EXIT1-IR', 'EXIT2-IR', ] -def get_annotation_classes(): - l = [] - for s in jtag_states: - l.append([s.lower(), s]) - return l - class Decoder(srd.Decoder): api_version = 1 id = 'jtag' @@ -80,7 +74,7 @@ class Decoder(srd.Decoder): {'id': 'rtck', 'name': 'RTCK', 'desc': 'Return clock signal'}, ] options = {} - annotations = get_annotation_classes() + annotations = [[s.lower(), s] for s in jtag_states] def __init__(self, **kwargs): # self.state = 'TEST-LOGIC-RESET' |