pylint: fix R1714 consider-using-in

parent a04315f0
...@@ -31,7 +31,7 @@ def get_dsakeys(config, node): ...@@ -31,7 +31,7 @@ def get_dsakeys(config, node):
for i, word in enumerate(trust_anchor): for i, word in enumerate(trust_anchor):
if word == "DS": if word == "DS":
algorithm = trust_anchor[i + 2] algorithm = trust_anchor[i + 2]
if algorithm == "3" or algorithm == "DSA": if algorithm in ("3", "DSA"):
dsakeys.append(trust_anchor[i + 1]) dsakeys.append(trust_anchor[i + 1])
for entry in node.match("/scenario/range/entry"): for entry in node.match("/scenario/range/entry"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment