diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-25 07:50:59 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-25 07:50:59 +0000 |
commit | 831d4c906f9934dabfc76a60e02a79249b37b32b (patch) | |
tree | 58e24628bb5cced343a65f60563d73478f56f90d | |
parent | 965c28ee74d2dc1d40fad066aece537a7d77616e (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@372819 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lnt/server/reporting/summaryreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lnt/server/reporting/summaryreport.py b/lnt/server/reporting/summaryreport.py index 7b2bf9c..be6b715 100644 --- a/lnt/server/reporting/summaryreport.py +++ b/lnt/server/reporting/summaryreport.py @@ -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]) |