diff --git a/tools/infrt/get_phi_kernel_info.py b/tools/infrt/get_phi_kernel_info.py index 23d9a8ffdd225b06301ee3f4c38f3fa7fb8c4c1c..db2e56ca328171e1076f14611a637cfb1cc9644d 100644 --- a/tools/infrt/get_phi_kernel_info.py +++ b/tools/infrt/get_phi_kernel_info.py @@ -58,7 +58,7 @@ def get_api_yaml_info(file_path): def get_kernel_info(file_path): f = open(file_path, "r") cont = f.readlines() - return [l.strip() for l in cont] + return [l.strip() for l in cont if l.strip() != ""] def get_attr_info(file_path):