From c6bb5b1f54de2080db15eca0a9377ee45e819e98 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Mon, 3 Sep 2012 22:27:38 +0200 Subject: [PATCH] Cosmetic fixes --- iotop/data.py | 7 +++++-- iotop/ui.py | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/iotop/data.py b/iotop/data.py index d817492..d1ce825 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -355,7 +355,8 @@ class ProcessInfo(DumpableObject): for tid, thread in self.threads.items(): if not thread.mark: stats_delta.accumulate(thread.stats_delta, stats_delta) - self.threads = dict([(tid, thread) for tid, thread in self.threads.items() if not thread.mark]) + self.threads = dict([(tid, thread) for tid, thread in + self.threads.items() if not thread.mark]) nr_threads = len(self.threads) if not nr_threads: @@ -449,7 +450,9 @@ class ProcessList(DumpableObject): total_read_and_write = self.update_process_counts() - self.processes = dict([(pid,process) for pid, process in self.processes.items() if process.update_stats()]) + self.processes = dict([(pid, process) for pid, process in + self.processes.items() if + process.update_stats()]) return total_read_and_write diff --git a/iotop/ui.py b/iotop/ui.py index 187ba18..8e36734 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -17,7 +17,7 @@ # Copyright (c) 2007 Guillaume Chazarain # Allow printing with same syntax in Python 2/3 -from __future__ import print_function +from __future__ import print_function import curses import errno @@ -399,7 +399,8 @@ class IOTopUI(object): return not self.options.only or \ p.did_some_io(self.options.accumulated) - processes = list(filter(should_format, self.process_list.processes.values())) + processes = list(filter(should_format, + self.process_list.processes.values())) key = IOTopUI.sorting_keys[self.sorting_key][0] if self.options.accumulated: stats_lambda = lambda p: p.stats_accum -- 2.11.4.GIT