Cosmetic fixes
authorGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:27:38 +0000 (3 22:27 +0200)
committerGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:27:38 +0000 (3 22:27 +0200)
iotop/data.py
iotop/ui.py

index d817492..d1ce825 100644 (file)
@@ -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
 
index 187ba18..8e36734 100644 (file)
@@ -17,7 +17,7 @@
 # Copyright (c) 2007 Guillaume Chazarain <guichaz@gmail.com>
 
 # 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