From d48b11f529e0b71b73e6ab2243fc4763bcdc011d Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 18 Jun 2018 14:13:36 -0400 Subject: [PATCH] [infra] helper.py: rewrite conditional to be more readable and idiomatic (#1534) * Rewerite conditional to be more readable and idiomatic * In fact, simplify further --- infra/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/helper.py b/infra/helper.py index 389afce9a..1b788db8f 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -557,7 +557,7 @@ def download_corpus(project_name): print('Downloading corpus for %s project' % project_name) thread_pool = ThreadPool(multiprocessing.cpu_count()) - return not False in thread_pool.map(_download_for_single_target, fuzz_targets) + return all(thread_pool.map(_download_for_single_target, fuzz_targets)) def profile(args):