From 25d8e41f31c00dce576777c6afa40368a68d521c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 03 2018 20:54:07 +0000 Subject: cleanup --- diff --git a/koji/daemon.py b/koji/daemon.py index ab83c11..e594dd7 100644 --- a/koji/daemon.py +++ b/koji/daemon.py @@ -893,11 +893,11 @@ class TaskManager(object): #accept this task) bin_avail = avail.get(bin, [0]) self.logger.debug("available capacities for bin: %r" % bin_avail) - median = bin_avail[(len(bin_avail)-1)//2] + median = bin_avail[(len(bin_avail) - 1) // 2] self.logger.debug("ours: %.2f, median: %.2f" % (our_avail, median)) if not self.checkRelAvail(bin_avail, our_avail): if self.checkAvailDelay(task): - #decline for now and give the upper half a chance + # decline for now and give the upper half a chance return False #otherwise, we attempt to open the task if self.takeTask(task):