diff options
author | Witold Baryluk <witold.baryluk+github@gmail.com> | 2020-10-04 08:12:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 08:12:50 +0000 |
commit | 45fd085395c29a084602ce6f747487b17a5491d9 (patch) | |
tree | a8f4e5d7f64e340486cfe35f9e86709db158c191 /scripts | |
parent | 46fb748a96153b419f25218f8fd9a38a30becf24 (diff) |
Fix Python SyntaxWarning
There is no guarantee that all empty strings objects are the same or share object with `""` literal.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |