From 11c4af913de3f5196c32f9f3f75427bc56a9e8cc Mon Sep 17 00:00:00 2001 From: w00657280 Date: Tue, 15 Oct 2024 21:17:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=A3=80=E8=A7=86=E9=97=AE=E9=A2=98=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w00657280 --- tools/syscap_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/syscap_check.py b/tools/syscap_check.py index e2b97fa..c404369 100644 --- a/tools/syscap_check.py +++ b/tools/syscap_check.py @@ -114,8 +114,7 @@ def collect_syscap_from_codec(filepath: str, pattern: str = r'{"(.*)"') -> tuple def collect_syscap_from_component(project_path: str, black_dirs: tuple, key_heirarchy: tuple, - bundles: list = None, - ) -> tuple: + bundles: list = None) -> tuple: """ 从部件的bundle.json中收集syscap :param project_path: 项目根路径 @@ -136,6 +135,7 @@ def collect_syscap_from_component(project_path: str, for line in output: line = line.strip() read_value_from_json(line, key_heirarchy, result_dict, post_handler=bundle_syscap_post_handler) + output.close() else: for bundle in bundles: read_value_from_json(bundle, key_heirarchy, result_dict, post_handler=bundle_syscap_post_handler) -- Gitee