Skip to content

Commit 478767c

Browse files
authored
Merge pull request #4719 from Flamefire/cray-list-toolchains
Fix FFT entry in --list-toolchain output for Cray toolchains
2 parents 5661bf5 + 93c9702 commit 478767c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

easybuild/tools/docs.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ def list_toolchains_md(tcs):
11251125
none_txt = '*(none)*'
11261126

11271127
# Initialize an empty list of lists for the table data
1128-
table_values = [[] for i in range(len(table_titles))]
1128+
table_values = [[] for _ in range(len(table_titles))]
11291129

11301130
for col_id, col_name in enumerate(table_titles):
11311131
if col_name == 'NAME':
@@ -1141,6 +1141,8 @@ def list_toolchains_md(tcs):
11411141
entry = 'cray-mpich'
11421142
elif col_name == 'LINALG':
11431143
entry = 'cray-libsci'
1144+
else:
1145+
entry = none_txt
11441146
# Combine the linear algebra libraries into a single column
11451147
elif col_name == 'LINALG':
11461148
linalg = []
@@ -1185,7 +1187,7 @@ def list_toolchains_rst(tcs):
11851187
none_txt = '*(none)*'
11861188

11871189
# Initialize an empty list of lists for the table data
1188-
table_values = [[] for i in range(len(table_titles))]
1190+
table_values = [[] for _ in range(len(table_titles))]
11891191

11901192
for col_id, col_name in enumerate(table_titles):
11911193
if col_name == 'NAME':
@@ -1201,6 +1203,8 @@ def list_toolchains_rst(tcs):
12011203
entry = 'cray-mpich'
12021204
elif col_name == 'LINALG':
12031205
entry = 'cray-libsci'
1206+
else:
1207+
entry = none_txt
12041208
# Combine the linear algebra libraries into a single column
12051209
elif col_name == 'LINALG':
12061210
linalg = []

0 commit comments

Comments
 (0)