From 71e2eee318328695afba7c1a0906877197eda542 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Sun, 13 Dec 2009 17:33:52 +0100 Subject: [PATCH] Don't use all() as it was introduced in python-2.5 --- iotop/data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iotop/data.py b/iotop/data.py index 155a2c2..6636a78 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -278,8 +278,10 @@ class ProcessInfo(DumpableObject): def did_some_io(self, accumulated): if accumulated: return not self.stats_accum.is_all_zero() - return not all(t.stats_delta.is_all_zero() for - t in self.threads.itervalues()) + for t in self.threads.itervalues(): + if not t.stats_delta.is_all_zero(): + return True + return False def get_ioprio(self): priorities = set(t.get_ioprio() for t in self.threads.itervalues()) -- 2.11.4.GIT