From 829070c12b50b71e3e07270fd9c5b67ed9b8a52e Mon Sep 17 00:00:00 2001 From: Sourcery AI Date: Fri, 23 Apr 2021 19:37:47 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- consumer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/consumer.py b/consumer.py index 764c229..09f4db0 100644 --- a/consumer.py +++ b/consumer.py @@ -15,9 +15,7 @@ class QueueManager(BaseManager): def cpu_work(work_units): - x = 0 - for w in range(work_units * 1_000_000): - x += 1 + x = sum(1 for _ in range(work_units * 1_000_000)) def consumer(r_manger):