X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=5c9698912ff3eee0b88a4d60e2a2a354bc940c15;hp=74db877007e0b4bf9a392955d3af3df06ff4d28b;hb=691f24ec052cc9d48d6abe143bcae95486f94388;hpb=0013ff2deb67ebdf99655b186b720d393c9cc620 diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 74db877007..5c9698912f 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -314,8 +314,8 @@ def plot_hdrh_lat_by_percentile(plot, input_data): filename=file_name) # Add link to the file: if file_links and target_links: - with open(file_links, u"a") as fw: - fw.write( + with open(file_links, u"a") as file_handler: + file_handler.write( f"- `{name_link} " f"<{target_links}/{file_name.split(u'/')[-1]}>`_\n" )