From 51d52208f20ed8aa5a4273e2a87cd62274c77bab Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Fri, 2 Aug 2013 10:51:25 +0200 Subject: [PATCH] fio2gnplot: Renaming file variable to myfile 'file' could be reserved on some modules or in the python. It's better to rename it to avoid troubles. --- tools/plot/fio2gnuplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/plot/fio2gnuplot.py b/tools/plot/fio2gnuplot.py index c6cf66b2..6ce5e362 100755 --- a/tools/plot/fio2gnuplot.py +++ b/tools/plot/fio2gnuplot.py @@ -160,8 +160,8 @@ def compute_temp_file(fio_data_file,disk_perf,gnuplot_output_dir, min_time, max_ current_line=[] nb_empty_files=0 nb_files=len(files) - for file in files: - s=file.readline().replace(',',' ').split() + for myfile in files: + s=myfile.readline().replace(',',' ').split() if not s: nb_empty_files+=1 s="-1, 0, 0, 0".replace(',',' ').split() -- 2.25.1