From 246654246821fcde172c97399e6e8175708e60b5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 19 Feb 2014 19:12:56 +0100 Subject: [PATCH] jtag: Use list comprehensions. --- decoders/jtag/pd.py | 8 +------- 1 file changed, 1 insertion(+), 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' -- 2.30.2