diff --git a/easybuild/tools/docs.py b/easybuild/tools/docs.py index bcee3917e6..bc73a3a820 100644 --- a/easybuild/tools/docs.py +++ b/easybuild/tools/docs.py @@ -1141,7 +1141,7 @@ def list_toolchains_md(tcs): none_txt = '*(none)*' # Initialize an empty list of lists for the table data - table_values = [[] for i in range(len(table_titles))] + table_values = [[] for _ in range(len(table_titles))] for col_id, col_name in enumerate(table_titles): if col_name == 'NAME': @@ -1157,6 +1157,8 @@ def list_toolchains_md(tcs): entry = 'cray-mpich' elif col_name == 'LINALG': entry = 'cray-libsci' + else: + entry = none_txt # Combine the linear algebra libraries into a single column elif col_name == 'LINALG': linalg = [] @@ -1201,7 +1203,7 @@ def list_toolchains_rst(tcs): none_txt = '*(none)*' # Initialize an empty list of lists for the table data - table_values = [[] for i in range(len(table_titles))] + table_values = [[] for _ in range(len(table_titles))] for col_id, col_name in enumerate(table_titles): if col_name == 'NAME': @@ -1217,6 +1219,8 @@ def list_toolchains_rst(tcs): entry = 'cray-mpich' elif col_name == 'LINALG': entry = 'cray-libsci' + else: + entry = none_txt # Combine the linear algebra libraries into a single column elif col_name == 'LINALG': linalg = []