From 0260f4b37a4432badd8d18adf79012031a5572bc Mon Sep 17 00:00:00 2001 From: aodongbiao Date: Mon, 5 Sep 2022 15:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A0bundle.json=E4=B8=AD=E7=9A=84syscap?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=85=B3=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=9B=A0=E6=AD=A4=E6=9B=B4=E6=94=B9=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aodongbiao Change-Id: I74430168925e4bc8326b5e6fdc22d375275cbdfb --- tools/syscap_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syscap_check.py b/tools/syscap_check.py index 5ef17b2..dc1c2de 100755 --- a/tools/syscap_check.py +++ b/tools/syscap_check.py @@ -83,7 +83,7 @@ def read_value_from_json(filepath, key_hierarchy, result_dict): return result_dict finally: f.close() - data = [x for x in data if len(x) != 0 and x.isspace() is False] + data = [x.split("=")[0].strip() for x in data if len(x) != 0 and x.isspace() is False] if len(data) != 0: result_dict[filepath] = data return result_dict