summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2023-12-20 13:17:28 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2024-01-09 20:06:29 +0100
commit8be9de75e2f1fb303bb3fd1842ffe93f794b43c0 (patch)
treec5feac6de785acbfb549ab4b57e8f7a52b5954d5 /tools
parentca12c120328b8aed25c8f6ae56f0045e1bf45592 (diff)
lint: apply linter fixes
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1315>
Diffstat (limited to 'tools')
-rw-r--r--tools/certdata2pem.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/certdata2pem.py b/tools/certdata2pem.py
index cce7d2b9..9c51ba5d 100644
--- a/tools/certdata2pem.py
+++ b/tools/certdata2pem.py
@@ -23,7 +23,6 @@
import base64
import os.path
import re
-import sys
import textwrap
objects = []
@@ -112,7 +111,7 @@ for obj in objects:
for obj in objects:
if obj['CKA_CLASS'] == 'CKO_CERTIFICATE':
- if not obj['CKA_LABEL'] in trust or not trust[obj['CKA_LABEL']]:
+ if obj['CKA_LABEL'] not in trust or not trust[obj['CKA_LABEL']]:
continue
fname = (
obj['CKA_LABEL'][1:-1]