From 1c2b8da1bbc8458b1d878ae10d957bd6b7546131 Mon Sep 17 00:00:00 2001 From: Jakob Date: Fri, 23 Oct 2020 21:33:30 +0200 Subject: mostly string conversions --- numpy/testing/_private/parameterized.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/_private/parameterized.py') diff --git a/numpy/testing/_private/parameterized.py b/numpy/testing/_private/parameterized.py index 3bd8ede91..ac7db6c40 100644 --- a/numpy/testing/_private/parameterized.py +++ b/numpy/testing/_private/parameterized.py @@ -205,7 +205,7 @@ def default_doc_func(func, num, p): all_args_with_values = parameterized_argument_value_pairs(func, p) # Assumes that the function passed is a bound method. - descs = ["%s=%s" %(n, short_repr(v)) for n, v in all_args_with_values] + descs = [f'{n}={short_repr(v)}' for n, v in all_args_with_values] # The documentation might be a multiline string, so split it # and just work with the first string, ignoring the period -- cgit v1.2.1