From: Erwan Velu Date: Fri, 2 Aug 2013 08:51:25 +0000 (+0200) Subject: fio2gnplot: Renaming file variable to myfile X-Git-Tag: fio-2.1.2~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=51d52208f20ed8aa5a4273e2a87cd62274c77bab 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. --- 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()