Skip to content

Commit 873b1b5

Browse files
author
Thomas Preud'homme
committed
[LNT] Python 3 support: adapt to filter returning an iterator
Adapt calls to filter() to the fact it returns an iterator in Python 3. This was produced by running futurize's stage2 lib2to3.fixes.fix_filter. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67815 llvm-svn: 372819
1 parent 1e92ad8 commit 873b1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/server/reporting/summaryreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def should_be_in_report(machine):
119119
if rex.match(machine.name):
120120
return True
121121
self.requested_machines = dict(
122-
(ts, filter(should_be_in_report, session.query(ts.Machine).all()))
122+
(ts, list(filter(should_be_in_report, session.query(ts.Machine).all())))
123123
for ts in self.testsuites)
124124
self.requested_machine_ids = dict(
125125
(ts, [m.id for m in machines])

0 commit comments

Comments
 (0)