Skip to content

Commit 490f577

Browse files
committed
[jobstats] Listify a generator before sorting it.
1 parent 3d1f7b8 commit 490f577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/jobstats/jobstats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def merge_all_jobstats(jobstats, select_module=[], group_by_module=False):
221221
if group_by_module:
222222
def keyfunc(j):
223223
return j.module
224+
jobstats = list(jobstats)
224225
jobstats.sort(key=keyfunc)
225226
prefixed = []
226227
for mod, group in itertools.groupby(jobstats, keyfunc):

0 commit comments

Comments
 (0)