Skip to content

Commit 163c3dd

Browse files
authored
[NFC] Simplify destructuring which is supported in recent Python versions (llvm#83)
1 parent d7a12fb commit 163c3dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lnt/server/reporting/analysis.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,7 @@ def _load_samples_for_runs(self, session, run_ids, only_tests):
405405
if only_tests:
406406
q = q.filter(self.testsuite.Sample.test_id.in_(only_tests))
407407
q = q.filter(self.testsuite.Sample.run_id.in_(to_load))
408-
for data in q:
409-
run_id = data[0]
410-
test_id = data[1]
411-
profile_id = data[2]
412-
sample_values = data[3:]
408+
for (run_id, test_id, profile_id, *sample_values) in q:
413409
self.sample_map[(run_id, test_id)] = sample_values
414410
if profile_id is not None:
415411
self.profile_map[(run_id, test_id)] = profile_id

0 commit comments

Comments
 (0)