[LNT] r372819 - [LNT] Python 3 support: adapt to filter returning an iterator
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 00:50:59 PDT 2019
Author: thopre
Date: Wed Sep 25 00:50:59 2019
New Revision: 372819
URL: http://llvm.org/viewvc/llvm-project?rev=372819&view=rev
Log:
[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
Modified:
lnt/trunk/lnt/server/reporting/summaryreport.py
Modified: lnt/trunk/lnt/server/reporting/summaryreport.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/summaryreport.py?rev=372819&r1=372818&r2=372819&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/summaryreport.py (original)
+++ lnt/trunk/lnt/server/reporting/summaryreport.py Wed Sep 25 00:50:59 2019
@@ -119,7 +119,7 @@ class SummaryReport(object):
if rex.match(machine.name):
return True
self.requested_machines = dict(
- (ts, filter(should_be_in_report, session.query(ts.Machine).all()))
+ (ts, list(filter(should_be_in_report, session.query(ts.Machine).all())))
for ts in self.testsuites)
self.requested_machine_ids = dict(
(ts, [m.id for m in machines])
More information about the llvm-commits
mailing list