fio2gnplot: Renaming file variable to myfile
authorErwan Velu <erwan@enovance.com>
Fri, 2 Aug 2013 08:51:25 +0000 (10:51 +0200)
committerErwan Velu <erwan@enovance.com>
Mon, 5 Aug 2013 15:09:59 +0000 (17:09 +0200)
'file' could be reserved on some modules or in the python.
It's better to rename it to avoid troubles.

tools/plot/fio2gnuplot.py

index c6cf66b2a8b23283adade5cb67bfefe414de8c8e..6ce5e36219d5518f3d96f0a121b28aa5674102f2 100755 (executable)
@@ -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()