summaryrefslogtreecommitdiff
path: root/numpy/random/_examples/numba/extending.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/_examples/numba/extending.py')
-rw-r--r--numpy/random/_examples/numba/extending.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_examples/numba/extending.py b/numpy/random/_examples/numba/extending.py
index 0d240596b..da4d93944 100644
--- a/numpy/random/_examples/numba/extending.py
+++ b/numpy/random/_examples/numba/extending.py
@@ -44,9 +44,9 @@ assert r1.shape == (n,)
assert r1.shape == r2.shape
t1 = timeit(numbacall, number=1000)
-print('{:.2f} secs for {} PCG64 (Numba/PCG64) gaussian randoms'.format(t1, n))
++print(f'{t1:.2f} secs for {n} PCG64 (Numba/PCG64) gaussian randoms')
t2 = timeit(numpycall, number=1000)
-print('{:.2f} secs for {} PCG64 (NumPy/PCG64) gaussian randoms'.format(t2, n))
+print(f'{t2:.2f} secs for {n} PCG64 (NumPy/PCG64) gaussian randoms')
# example 2