From: Peter Gubka Date: Tue, 18 Oct 2016 10:59:04 +0000 (+0200) Subject: dsbenchmark.py: removing space after comma while creating csv file X-Git-Tag: release/beryllium-sr4~7 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=02031091eed3aa3d8ae12fcc0780c35ccf5eda3c dsbenchmark.py: removing space after comma while creating csv file Change-Id: Ib4c94f4fb3217d88e8f05944025a03728dbb8d54 Signed-off-by: Peter Gubka --- 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: