summaryrefslogtreecommitdiff
path: root/benchmarks/benchmarks/20_quantity.py
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-04-29 19:44:20 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-04-29 19:44:20 -0300
commitb63697287ba1e5de7300890ea4c03b8781b04863 (patch)
tree0eb5db03beef71ddfb5a094521034b9f0b212b5b /benchmarks/benchmarks/20_quantity.py
parent10f69c4870ef9acda1b5dd21f2bf87f15855d3ea (diff)
downloadpint-b63697287ba1e5de7300890ea4c03b8781b04863.tar.gz
Run pyupgrade --py39-plus in all files except _vendor
Diffstat (limited to 'benchmarks/benchmarks/20_quantity.py')
-rw-r--r--benchmarks/benchmarks/20_quantity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/benchmarks/20_quantity.py b/benchmarks/benchmarks/20_quantity.py
index c0174ef..3283ede 100644
--- a/benchmarks/benchmarks/20_quantity.py
+++ b/benchmarks/benchmarks/20_quantity.py
@@ -8,7 +8,7 @@ from . import util
units = ("meter", "kilometer", "second", "minute", "angstrom")
all_values = ("int", "float", "complex")
all_values_q = tuple(
- "%s_%s" % (a, b) for a, b in it.product(all_values, ("meter", "kilometer"))
+ "{}_{}".format(a, b) for a, b in it.product(all_values, ("meter", "kilometer"))
)
op1 = (operator.neg, operator.truth)