]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: use list comprehension for checking the length 34857/head
authorKefu Chai <kchai@redhat.com>
Thu, 30 Apr 2020 10:07:00 +0000 (18:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Apr 2020 15:18:03 +0000 (23:18 +0800)
commit726c59be58473cfe53fa3ea63cf35b58ed797886
tree2e05bc21c58f6e9d0f4e099241d030482237fefe
parent84fbf1c5cddc096817472377fab4bed0d9434b6f
qa/tasks: use list comprehension for checking the length

instead of using filter(), use `sum()` for counting its
length, as in Python3, `filter()` actually returns a `filter` object
instead of a list.

in this change, `filter()` calls are replaced with `sum()`
for Python3 compatibility.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/mds_thrash.py