diff --git a/cmake_converter/context_initializer.py b/cmake_converter/context_initializer.py index a043976..2a834f5 100644 --- a/cmake_converter/context_initializer.py +++ b/cmake_converter/context_initializer.py @@ -37,7 +37,7 @@ def __init__(self, context, vs_project, cmake_lists_destination_path): self.init_files(context, vs_project, cmake_lists_destination_path) message( context, - 'Initialization data for conversion of project {0}'.format(context.vcxproj_path), + 'Initialization data for conversion of project {}'.format(context.vcxproj_path), '' ) for sln_config in context.sln_configurations_map: diff --git a/cmake_converter/data_converter.py b/cmake_converter/data_converter.py index f4b6620..de44d87 100644 --- a/cmake_converter/data_converter.py +++ b/cmake_converter/data_converter.py @@ -237,11 +237,11 @@ def convert_project(self, context, xml_project_path, cmake_lists_destination_pat """ # Initialize Context of DataConverter if not context.init(xml_project_path, cmake_lists_destination_path): - message(context, 'Unknown project type at {0}'.format(xml_project_path), 'error') + message(context, 'Unknown project type at {}'.format(xml_project_path), 'error') return False - message(context, 'Conversion started: Project {0}'.format(context.project_name), 'done') - message(context, 'Collecting data for project {0}'.format(context.vcxproj_path), '') + message(context, 'Conversion started: Project {}'.format(context.project_name), 'done') + message(context, 'Collecting data for project {}'.format(context.vcxproj_path), '') self.collect_data(context) self.verify_data(context) self.merge_data_settings(context) @@ -252,7 +252,7 @@ def convert_project(self, context, xml_project_path, cmake_lists_destination_pat cmake_file.write('\n' * 26) else: cmake_file = get_cmake_lists(context, context.cmake) - message(context, 'Writing data for project {0}'.format(context.vcxproj_path), '') + message(context, 'Writing data for project {}'.format(context.vcxproj_path), '') self.write_data(context, cmake_file) cmake_file.close() warnings = '' @@ -393,11 +393,11 @@ def __write_supported_architectures_check(context, cmake_file): first = True for arch in arch_list: if first: - cmake_file.write('\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{0}\"' + cmake_file.write('\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{}\"' .format(arch)) first = False else: - cmake_file.write('\n OR \"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{0}\"' + cmake_file.write('\n OR \"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{}\"' .format(arch)) cmake_file.write('))\n') cmake_file.write( @@ -418,7 +418,7 @@ def __write_global_configuration_types(root_cmake, configuration_types_list): write_comment(root_cmake, 'Global configuration types') root_cmake.write('set(CMAKE_CONFIGURATION_TYPES\n') for configuration_type in configuration_types_list: - root_cmake.write(' \"{0}\"\n'.format(configuration_type)) + root_cmake.write(' \"{}\"\n'.format(configuration_type)) root_cmake.write(' CACHE STRING "" FORCE\n)\n\n') def __write_global_compile_options(self, root_context, root_cmake, configuration_types_list): @@ -462,16 +462,16 @@ def __write_global_link_options(root_cmake, configuration_types_list): for configuration_type in configuration_types_list: ct_upper = configuration_type.upper() root_cmake.write( - ' set(CMAKE_EXE_LINKER_FLAGS_{0} \"${{CMAKE_EXE_LINKER_FLAGS}}\")\n' + ' set(CMAKE_EXE_LINKER_FLAGS_{} \"${{CMAKE_EXE_LINKER_FLAGS}}\")\n' .format(ct_upper)) root_cmake.write( - ' set(CMAKE_MODULE_LINKER_FLAGS_{0} \"${{CMAKE_MODULE_LINKER_FLAGS}}\")\n' + ' set(CMAKE_MODULE_LINKER_FLAGS_{} \"${{CMAKE_MODULE_LINKER_FLAGS}}\")\n' .format(ct_upper)) root_cmake.write( - ' set(CMAKE_SHARED_LINKER_FLAGS_{0} \"${{CMAKE_SHARED_LINKER_FLAGS}}\")\n' + ' set(CMAKE_SHARED_LINKER_FLAGS_{} \"${{CMAKE_SHARED_LINKER_FLAGS}}\")\n' .format(ct_upper)) root_cmake.write( - ' set(CMAKE_STATIC_LINKER_FLAGS_{0} \"${{CMAKE_STATIC_LINKER_FLAGS}}\")\n' + ' set(CMAKE_STATIC_LINKER_FLAGS_{} \"${{CMAKE_STATIC_LINKER_FLAGS}}\")\n' .format(ct_upper)) root_cmake.write('endif()\n\n') @@ -483,8 +483,8 @@ def __write_subdirectories(root_cmake, subdirectories_set, subdirectories_to_pro for subdirectory in subdirectories: binary_dir = '' if '.' in subdirectory[:1]: - binary_dir = ' ${{CMAKE_BINARY_DIR}}/{0}'.format( + binary_dir = ' ${{CMAKE_BINARY_DIR}}/{}'.format( subdirectories_to_project_name[subdirectory]) - root_cmake.write('add_subdirectory({0}{1})\n'.format( + root_cmake.write('add_subdirectory({}{})\n'.format( set_unix_slash(subdirectory), binary_dir)) root_cmake.write('\n') diff --git a/cmake_converter/data_files.py b/cmake_converter/data_files.py index d8edce1..4a919b4 100644 --- a/cmake_converter/data_files.py +++ b/cmake_converter/data_files.py @@ -41,7 +41,7 @@ def search_file_path(context, xml_file): if found_xml_file is None: message( context, - '{0} file not exists. '.format(xml_file), + '{} file not exists. '.format(xml_file), 'error' ) return None @@ -49,7 +49,7 @@ def search_file_path(context, xml_file): if found_xml_file != xml_file: message( context, - 'file reference probably has wrong case {0}'.format(xml_file), + 'file reference probably has wrong case {}'.format(xml_file), 'warn4' ) @@ -171,7 +171,7 @@ def get_propertygroup(target_platform, attributes=''): """ prop = \ - '//ns:PropertyGroup[@Condition="\'$(Configuration)|$(Platform)\'==\'{0}\'"{1}]'.format( + '//ns:PropertyGroup[@Condition="\'$(Configuration)|$(Platform)\'==\'{}\'"{}]'.format( '|'.join(target_platform), attributes) return prop @@ -189,7 +189,7 @@ def get_definitiongroup(target_platform): item = \ '//ns:ItemDefinitionGroup[@Condition="\'$(Configuration)|' \ - '$(Platform)\'==\'{0}\'"]'.format('|'.join(target_platform)) + '$(Platform)\'==\'{}\'"]'.format('|'.join(target_platform)) return item diff --git a/cmake_converter/dependencies.py b/cmake_converter/dependencies.py index d9c3900..d31b952 100644 --- a/cmake_converter/dependencies.py +++ b/cmake_converter/dependencies.py @@ -110,7 +110,7 @@ def set_additional_include_directories(aid_text, setting, context): if inc_dirs: message( context, - 'Include Directories : {0}'.format(context.settings[setting]['inc_dirs']), + 'Include Directories : {}'.format(context.settings[setting]['inc_dirs']), '') @staticmethod @@ -158,7 +158,7 @@ def write_target_references(context, cmake_file): if deps_to_write: cmake_file.write('add_dependencies(${PROJECT_NAME}\n') for dep in deps_to_write: - cmake_file.write(' {0}\n'.format(dep)) + cmake_file.write(' {}\n'.format(dep)) cmake_file.write(')\n\n') @staticmethod @@ -177,7 +177,7 @@ def write_link_dependencies(context, cmake_file): cmake_file.write('target_link_libraries(${PROJECT_NAME} PUBLIC\n') for reference in context.target_references: cmake_file.write(' {}\n'.format(reference)) - msg = 'External library found : {0}'.format(reference) + msg = 'External library found : {}'.format(reference) message(context, msg, '') cmake_file.write(')\n\n') @@ -274,7 +274,7 @@ def write_target_dependency_packages(context, cmake_file): for package in context.packages: for package_property in package[2]: - id_version = '{0}.{1}'.format(package[0], package[1]) + id_version = '{}.{}'.format(package[0], package[1]) for setting in context.settings: if 'packages' not in context.settings[setting]: continue @@ -289,17 +289,17 @@ def write_target_dependency_packages(context, cmake_file): has_written = write_property_of_settings( cmake_file, context.settings, context.sln_configurations_map, - begin_text='string(CONCAT "{0}"'.format(package_property_variable), + begin_text='string(CONCAT "{}"'.format(package_property_variable), end_text=')', property_name=id_version + package_property, ) if has_written: cmake_file.write( - 'set_target_properties(${{PROJECT_NAME}} PROPERTIES "{0}" ${{{1}}})\n' + 'set_target_properties(${{PROJECT_NAME}} PROPERTIES "{}" ${{{}}})\n' .format(package_property, package_property_variable) ) cmake_file.write( - 'use_package(${{PROJECT_NAME}} {0} {1})\n'.format(package[0], package[1]) + 'use_package(${{PROJECT_NAME}} {} {})\n'.format(package[0], package[1]) ) @staticmethod @@ -323,7 +323,7 @@ def __write_target_build_events(context, cmake_file, comment, value_name, event_ cmake_file, context.settings, context.sln_configurations_map, begin_text='add_custom_command_if(\n' ' TARGET ${{PROJECT_NAME}}\n' - ' {0}\n' + ' {}\n' ' COMMANDS'.format(event_type), end_text=')', property_name=value_name, @@ -371,10 +371,10 @@ def __write_file_custom_build_events(context, cmake_file, comment, value_name, e text = write_property_of_settings( cmake_file, file_context.settings, context.sln_configurations_map, begin_text='add_custom_command_if(\n' - ' OUTPUT "{0}"\n' + ' OUTPUT "{}"\n' ' COMMANDS'.format(outputs), - end_text=' DEPENDS "{0}"\n' - ' COMMENT "{1}"\n)'.format(file, description), + end_text=' DEPENDS "{}"\n' + ' COMMENT "{}"\n)'.format(file, description), property_name='file_custom_build_events', write_setting_property_func=Dependencies.write_file_build_event_of_setting ) diff --git a/cmake_converter/flags.py b/cmake_converter/flags.py index 843faa5..392923d 100644 --- a/cmake_converter/flags.py +++ b/cmake_converter/flags.py @@ -58,7 +58,7 @@ def __write_defines_for_files(cmake_file, config = config.replace('>', '') cmake_file.write( - '{0} COMPILE_DEFINITIONS{1} "{2}"\n' + '{} COMPILE_DEFINITIONS{} "{}"\n' .format(property_indent, config.upper(), ';'.join(property_value)) ) @@ -78,7 +78,7 @@ def write_defines(self, context, cmake_file): cmake_file, context.file_contexts[file].settings, context.sln_configurations_map, - begin_text='set_source_files_properties({0} PROPERTIES'.format(file), + begin_text='set_source_files_properties({} PROPERTIES'.format(file), end_text=')', property_name=defines, write_setting_property_func=self.__write_defines_for_files @@ -100,7 +100,7 @@ def __write_compile_flags(context, cmake_file, compiler_flags_key): text = write_property_of_settings( cmake_file, context.file_contexts[file].settings, context.sln_configurations_map, - begin_text='string(CONCAT {0}'.format(file_cl_var), + begin_text='string(CONCAT {}'.format(file_cl_var), end_text=')', property_name=compiler_flags_key, indent=' ', @@ -108,7 +108,7 @@ def __write_compile_flags(context, cmake_file, compiler_flags_key): ) if text: cmake_file.write( - ' source_file_compile_options({0} ${{{1}}})\n' + ' source_file_compile_options({} ${{{}}})\n' .format(file, file_cl_var)) @staticmethod @@ -138,8 +138,8 @@ def write_compile_and_link_flags(context, cmake_file, **kwargs): and_os_str = '' if os_check_str: - and_os_str = ' AND {0}'.format(os_check_str) - cmake_file.write('if({0}{1})\n'.format(compiler_check_str, and_os_str)) + and_os_str = ' AND {}'.format(os_check_str) + cmake_file.write('if({}{})\n'.format(compiler_check_str, and_os_str)) Flags.__write_compile_flags(context, cmake_file, compiler_flags_key) Flags.__write_link_flags(context, cmake_file, linker_flags_key) diff --git a/cmake_converter/project_files.py b/cmake_converter/project_files.py index afbade3..4695106 100644 --- a/cmake_converter/project_files.py +++ b/cmake_converter/project_files.py @@ -148,7 +148,7 @@ def apply_files_to_context(self, context): has_headers = bool(context.headers) context.has_headers = has_headers context.has_only_headers = bool(has_headers and not context.sources) - message(context, "Source files extensions found: {0}".format(self.languages), 'INFO') + message(context, "Source files extensions found: {}".format(self.languages), 'INFO') def find_cmake_project_languages(self, context): """ @@ -197,7 +197,7 @@ def write_cmake_project(context, cmake_file): 'error' ) cmake_file.write( - 'project({0}{1})\n\n'.format(make_cmake_literal(context, context.project_name), lang) + 'project({}{})\n\n'.format(make_cmake_literal(context, context.project_name), lang) ) @staticmethod diff --git a/cmake_converter/project_variables.py b/cmake_converter/project_variables.py index 9f389bf..a0d2f92 100644 --- a/cmake_converter/project_variables.py +++ b/cmake_converter/project_variables.py @@ -60,7 +60,7 @@ def set_output_dir_impl(context, output_node_text): output_path = output_path.strip().replace('\n', '') output_path = check_for_relative_in_path(context, output_path) context.settings[context.current_setting]['OUTPUT_DIRECTORY'] = [output_path] - message(context, 'Output Dir = {0}'.format(output_path), '') + message(context, 'Output Dir = {}'.format(output_path), '') @staticmethod def set_output_file_impl(context, output_file_node_text): diff --git a/cmake_converter/utils.py b/cmake_converter/utils.py index b9a35cf..3892b59 100644 --- a/cmake_converter/utils.py +++ b/cmake_converter/utils.py @@ -122,7 +122,7 @@ def take_name_from_list_case_ignore(context, search_list, name_to_search): break if real_name == '': - message(context, '{0} file is absent at filesystem. Ignoring but check it!!' + message(context, '{} file is absent at filesystem. Ignoring but check it!!' .format(name_to_search), 'warn') return '' @@ -173,17 +173,17 @@ def write_property_of_setting_f(cmake_file, if config_condition_expr: cmake_file.write( - '{0}{1}{2}\n'.format(config_indent, quotes + config_condition_expr_str, quotes) + '{}{}{}\n'.format(config_indent, quotes + config_condition_expr_str, quotes) ) prop_value_indent = config_indent + ' ' for prop in property_list_str: cmake_file.write( - '{0}{1}\n'.format(prop_value_indent, quotes + prop + quotes) + '{}{}\n'.format(prop_value_indent, quotes + prop + quotes) ) if config_condition_expr: - cmake_file.write('{0}{1}\n'.format(config_indent, quotes + '>' + quotes)) + cmake_file.write('{}{}\n'.format(config_indent, quotes + '>' + quotes)) def get_str_value_from_property_value(property_value, separator): @@ -229,12 +229,12 @@ def write_selected_sln_setting(cmake_file, if not has_property_value: begin_text = begin_text.replace('\n', '\n' + indent + command_indent) if begin_text: - cmake_file.write('{0}{1}\n'.format(indent + command_indent, begin_text)) + cmake_file.write('{}{}\n'.format(indent + command_indent, begin_text)) has_property_value = True config_condition_expr = None if sln_conf is not None: - config_condition_expr = '$'.format(sln_conf) + config_condition_expr = '$'.format(sln_conf) config_expressions.append(config_condition_expr) write_setting_property_func(cmake_file, indent + command_indent, @@ -258,12 +258,12 @@ def write_footer_of_settings(cmake_file, if has_property_value: if default: - cmake_file.write('{0} $<$>:{2}>\n' + cmake_file.write('{} $<$>:{}>\n' .format(indent + command_indent, ','.join(config_expressions), default)) end_text = end_text.replace('\n', '\n' + indent + command_indent) if end_text: - cmake_file.write('{0}{1}\n'.format(indent + command_indent, end_text)) + cmake_file.write('{}{}\n'.format(indent + command_indent, end_text)) def write_property_of_settings(cmake_file, settings, sln_setting_2_project_setting, **kwargs): @@ -336,7 +336,7 @@ def write_property_of_settings(cmake_file, settings, sln_setting_2_project_setti continue conf = sln_setting[0] if conf is not None: - length = len('$'.format(conf)) + length = len('$'.format(conf)) if length > max_config_condition_width: max_config_condition_width = length if arch not in settings_of_arch: @@ -355,10 +355,10 @@ def write_property_of_settings(cmake_file, settings, sln_setting_2_project_setti if not single_arch: command_indent = ' ' if first_arch: - cmake_file.write('{0}if(\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{1}\")\n' + cmake_file.write('{}if(\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{}\")\n' .format(indent, arch)) else: - cmake_file.write('{0}elseif(\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{1}\")\n' + cmake_file.write('{}elseif(\"${{CMAKE_VS_PLATFORM_NAME}}\" STREQUAL \"{}\")\n' .format(indent, arch)) first_arch = False has_property_value = False @@ -383,7 +383,7 @@ def write_property_of_settings(cmake_file, settings, sln_setting_2_project_setti has_property_value, **kwargs) if not first_arch and not single_arch: - cmake_file.write('{0}endif()\n'.format(indent)) + cmake_file.write('{}endif()\n'.format(indent)) return not first_arch @@ -495,7 +495,7 @@ def make_os_specific_shell_path(output): } for var in variables_to_replace: if var in output: - output = output.replace(var, '$'.format(variables_to_replace[var])) + output = output.replace(var, '$'.format(variables_to_replace[var])) return output @@ -611,7 +611,7 @@ def get_actual_filename(context, name): res = insensitive_glob(name) if not res: # File not found - message(context, 'file or path "{0}" not found.'.format(name), 'warn') + message(context, 'file or path "{}" not found.'.format(name), 'warn') return None return res[0] @@ -677,10 +677,10 @@ def message(context, text, status): # pragma: no cover message_begin = dt if context.project_number: - message_begin = message_begin + '{0}> '.format(context.project_number) + message_begin = message_begin + '{}> '.format(context.project_number) if None not in context.current_setting: - text = '{0} : {1}'.format(context.current_setting, text) + text = '{} : {}'.format(context.current_setting, text) if status == 'error': print(message_begin + 'ERR : ' + FAIL + text + ENDC) @@ -706,10 +706,10 @@ def get_comment(text): title_line = '' for _ in range(0, line_length): - title_line = '{0}{1}'.format(title_line, '#') + title_line = '{}{}'.format(title_line, '#') comment = title_line + '\n' - comment += '# {0}\n'.format(text) + comment += '# {}\n'.format(text) comment += title_line + '\n' return comment diff --git a/cmake_converter/visual_studio/vcxproj/dependencies.py b/cmake_converter/visual_studio/vcxproj/dependencies.py index 1ca2c1b..33810f1 100644 --- a/cmake_converter/visual_studio/vcxproj/dependencies.py +++ b/cmake_converter/visual_studio/vcxproj/dependencies.py @@ -255,7 +255,7 @@ def apply_target_dependency_packages(self, context): if 'packages' not in context.settings[setting]: context.settings[setting]['packages'] = {} ext_property_node = context.vcxproj['tree'].xpath( - '{0}/ns:{1}'.format(get_propertygroup(setting), ext_property), + '{}/ns:{}'.format(get_propertygroup(setting), ext_property), namespaces=context.vcxproj['ns']) if ext_property_node: if id_version not in context.settings[setting]['packages']: @@ -426,7 +426,7 @@ def set_target_post_build_events(self, context, node): # def set_custom_build_step(self, context, node): # self.__set_target_build_events( # context, - # '{0}/ns:CustomBuildStep/ns:Command', + # '{}/ns:CustomBuildStep/ns:Command', # 'custom_build_step', # 'Custom build' # ) diff --git a/cmake_converter/visual_studio/vcxproj/flags.py b/cmake_converter/visual_studio/vcxproj/flags.py index 9acf4a2..5d8d993 100644 --- a/cmake_converter/visual_studio/vcxproj/flags.py +++ b/cmake_converter/visual_studio/vcxproj/flags.py @@ -295,7 +295,7 @@ def set_flag(self, context, node): if flags_message: message( context, - '{0} is {1} '.format(flag_name, flags_message), + '{} is {} '.format(flag_name, flags_message), '' ) @@ -526,7 +526,7 @@ def __set_disable_specific_warnings(self, context, flag_name, specific_warnings_ for sw in specific_warnings_node.text.strip().split(";"): sw = sw.strip() if sw not in ('%(DisableSpecificWarnings)', ''): - flag = '/wd{0}'.format(sw) + flag = '/wd{}'.format(sw) flags.append(flag) self.flags[context.current_setting][flag_name][cl_flags] = flags message(context, 'DisableSpecificWarnings : {}'.format(';'.join(flags)), '') @@ -1418,7 +1418,7 @@ def write_precompiled_headers(context, setting, cmake_file): pch_source = context.settings[setting]['PrecompiledSourceFile'] working_path = os.path.dirname(context.vcxproj_path) cmake_file.write( - 'add_precompiled_header(${{PROJECT_NAME}} "{0}" "{1}")\n\n'.format( + 'add_precompiled_header(${{PROJECT_NAME}} "{}" "{}")\n\n'.format( os.path.basename(pch_header), normalize_path(context, working_path, pch_source, False) ) diff --git a/cmake_converter/visual_studio/vfproj/dependencies.py b/cmake_converter/visual_studio/vfproj/dependencies.py index 19aaae7..1039d67 100644 --- a/cmake_converter/visual_studio/vfproj/dependencies.py +++ b/cmake_converter/visual_studio/vfproj/dependencies.py @@ -56,7 +56,7 @@ def set_target_additional_dependencies(context, flag_name, ad_libs, node): if os.path.splitext(d)[1] == '.lib': add_libs.append(d.replace('.lib', '')) context.add_lib_deps = True - message(context, 'Additional Dependencies = {0}'.format(add_libs), '') + message(context, 'Additional Dependencies = {}'.format(add_libs), '') context.settings[context.current_setting]['add_lib_deps'] = add_libs @staticmethod @@ -84,7 +84,7 @@ def set_target_additional_library_directories(context, flag_name, ) ) message(context, - 'Additional Library Directories = {0}'.format(add_lib_dirs), '') + 'Additional Library Directories = {}'.format(add_lib_dirs), '') context.settings[context.current_setting]['target_link_dirs'] = add_lib_dirs @staticmethod diff --git a/cmake_converter/visual_studio/vfproj/flags.py b/cmake_converter/visual_studio/vfproj/flags.py index d42e955..ca08de7 100644 --- a/cmake_converter/visual_studio/vfproj/flags.py +++ b/cmake_converter/visual_studio/vfproj/flags.py @@ -152,7 +152,7 @@ def set_flag(self, context, flag_name, flag_value, node): if flags_message: message( context, - '{0} is {1} '.format(flag_name, flags_message), + '{} is {} '.format(flag_name, flags_message), '' ) @@ -486,8 +486,8 @@ def __set_disable_specific_diagnostics(self, context, flag_name, flag_value): # value must be a list with ',' separator opt = flag_value if opt: - self.flags[flag_name][ifort_cl_win] = ['-Qdiag-disable:{0}'.format(opt)] - self.flags[flag_name][ifort_cl_unix] = ['-diag-disable={0}'.format(opt)] + self.flags[flag_name][ifort_cl_win] = ['-Qdiag-disable:{}'.format(opt)] + self.flags[flag_name][ifort_cl_unix] = ['-diag-disable={}'.format(opt)] @staticmethod def __set_string_length_arg_passing(context, flag_name, flag_value): @@ -891,7 +891,7 @@ def __set_additional_options(self, context, flag_name, flag_value): unix_option = unix_option.replace('Qopenmp-lib', 'qopenmp-lib') unix_option = unix_option.replace('lib ', 'lib=') else: - message(context, 'Unix ifort option "{0}" may be incorrect. ' + message(context, 'Unix ifort option "{}" may be incorrect. ' 'Check it and set it with visual studio UI if possible.' .format(unix_option), 'warn') if ifort_cl_win not in self.flags[flag_name]: @@ -901,7 +901,7 @@ def __set_additional_options(self, context, flag_name, flag_value): self.flags[flag_name][ifort_cl_unix] = [] self.flags[flag_name][ifort_cl_unix].append(unix_option) message(context, - 'Additional Options : {0}'.format(str(ready_add_opts)), '') + 'Additional Options : {}'.format(str(ready_add_opts)), '') @staticmethod def __generate_debug_information(context, flag_name, flag_value):