Here we print a string, not bytes.
authorGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:58:08 +0000 (3 22:58 +0200)
committerGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:58:08 +0000 (3 22:58 +0200)
iotop/ui.py

index 8e36734..4eb92e0 100644 (file)
@@ -436,7 +436,7 @@ class IOTopUI(object):
                 if self.options.quiet <= int(first_time):
                     print(''.join(titles))
             for l in lines:
-                print(l.encode('utf-8'))
+                print(l)
             sys.stdout.flush()
         else:
             self.win.erase()