From 02031091eed3aa3d8ae12fcc0780c35ccf5eda3c Mon Sep 17 00:00:00 2001 From: Peter Gubka Date: Tue, 18 Oct 2016 12:59:04 +0200 Subject: [PATCH] dsbenchmark.py: removing space after comma while creating csv file Change-Id: Ib4c94f4fb3217d88e8f05944025a03728dbb8d54 Signed-off-by: Peter Gubka --- tools/mdsal_benchmark/dsbenchmark.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/mdsal_benchmark/dsbenchmark.py b/tools/mdsal_benchmark/dsbenchmark.py index 7dc00f7bcf..1c1ec09bfc 100755 --- a/tools/mdsal_benchmark/dsbenchmark.py +++ b/tools/mdsal_benchmark/dsbenchmark.py @@ -184,10 +184,10 @@ def write_results_to_file(values, file_name, key_filter): try: for key in sorted(values): if (key_filter != 'none') & ((key_filter == 'all') | (re.search(key_filter, key) is not None)): - first_line += key + ', ' - second_line += str(values[key]) + ', ' - first_line = first_line[:-2] - second_line = second_line[:-2] + first_line += key + ',' + second_line += str(values[key]) + ',' + first_line = first_line[:-1] + second_line = second_line[:-1] f.write(first_line + '\n') f.write(second_line + '\n') finally: -- 2.36.6