aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-22 16:42:27 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-22 17:14:58 +0200
commit47669028715fd1319219862e12a4ad5698409a6b (patch)
treebdaea18b6b2f0fc7c86d4ca0f2fabc00f7a27677
parent4951437ddfa91726acf9610953a072cc2e56c8e1 (diff)
downloadlinux-conf-perf-47669028715fd1319219862e12a4ad5698409a6b.tar.gz
linux-conf-perf-47669028715fd1319219862e12a4ad5698409a6b.tar.bz2
linux-conf-perf-47669028715fd1319219862e12a4ad5698409a6b.zip
Fix commit ad69a1
-rw-r--r--scripts/boot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/boot.py b/scripts/boot.py
index c12bb79..5d992f1 100644
--- a/scripts/boot.py
+++ b/scripts/boot.py
@@ -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)