diff --git a/templates/common/include_relative_path_check.py b/templates/common/include_relative_path_check.py index b968fc9641b803f0d4c3639ec45684f7e4dba37d..c1c0566e5282b90fbb3f00e4ece84ed1d746d4af 100644 --- a/templates/common/include_relative_path_check.py +++ b/templates/common/include_relative_path_check.py @@ -91,7 +91,7 @@ class Analyzer: with os.fdopen(os.open(output_path, flags, modes), 'w') as f: for ele in result: items = ele['subsystem'], ele['component'], ele['file_path'], str(ele['line_num']), ele['include_cmd'] - f.write(f'{" ".join(items)}\n') + f.write('{}\n'.format(" ".join(items))) @classmethod def __get_need_scan_path(cls, components, project, components_info_path):