]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix commit ad69a1 v201509
authorKarel Kočí <cynerd@email.cz>
Tue, 22 Sep 2015 14:42:27 +0000 (16:42 +0200)
committerKarel Kočí <cynerd@email.cz>
Tue, 22 Sep 2015 15:14:58 +0000 (17:14 +0200)
scripts/boot.py

index c12bb7978c21e090f68eb774244462bfb73971a0..5d992f1d15b3f9126fcc9365f48d83e98b00f8c8 100644 (file)
@@ -39,7 +39,7 @@ def boot(config, to_database = True):
                        txt = ''
                        for ln in out:
                                for c in ln:
-                                       if c == b'\0':
-                                               c = ' '
-                               txt += ln + '\n'
+                                       if not c.encode(sys.getdefaultencoding()) == b'\0':
+                                               txt += c
+                               txt += '\n'
                        dtb.add_measure(txt, result, config.id, value)