From dfd4624804cee4e8db140a4ae832f2c4856dabde Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 11 Dec 2020 08:54:50 -0800 Subject: [PATCH] Remove f-strings from results_list.py --- openmc/deplete/results_list.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openmc/deplete/results_list.py b/openmc/deplete/results_list.py index 02e55f8f8..708fb83cd 100644 --- a/openmc/deplete/results_list.py +++ b/openmc/deplete/results_list.py @@ -228,8 +228,8 @@ class ResultsList(list): times /= 60 elif time_units != "s": raise ValueError( - f'Unable to set "time_units" to {time_units} since it is not ' - 'in ("s", "d", "min", "h")' + 'Unable to set "time_units" to {} since it is not ' + 'in ("s", "d", "min", "h")'.format(time_units) ) return times @@ -286,6 +286,7 @@ class ResultsList(list): return ix raise ValueError( - f"A value of {time} {time_units} was not found given absolute and " - f"relative tolerances {atol} and {rtol}." + "A value of {} {} was not found given absolute and " + "relative tolerances {} and {}.".format( + time, time_units, atol, rtol) )