From 45fd085395c29a084602ce6f747487b17a5491d9 Mon Sep 17 00:00:00 2001 From: Witold Baryluk Date: Sun, 4 Oct 2020 08:12:50 +0000 Subject: Fix Python SyntaxWarning There is no guarantee that all empty strings objects are the same or share object with `""` literal. --- scripts/benchmark/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/benchmark/benchmark.py b/scripts/benchmark/benchmark.py index 0bb37c10..9850990f 100644 --- a/scripts/benchmark/benchmark.py +++ b/scripts/benchmark/benchmark.py @@ -103,7 +103,7 @@ def benchmark_single(benchmark, comparisons, platform, device, num_runs, precisi # The benchmark name and plot title benchmark_name = utils.precision_to_letter(precision) + benchmark.upper() if benchmark.upper() != "SUMMARY": - plot_title = benchmark_name if plot_title is "" else benchmark_name + ": " + plot_title + plot_title = benchmark_name if plot_title == "" else benchmark_name + ": " + plot_title # Retrieves the comparison settings library_ids = [1] -- cgit v1.2.3