From dcda10d1b545cb6f9e27df0b92be79164419d5b0 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Fri, 29 Nov 2019 14:04:41 +0100 Subject: [PATCH] Improve Python < 3.6 compatibility. f-strings are removed as it is only available since Python >=3.6 --- src/msspec/parameters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msspec/parameters.py b/src/msspec/parameters.py index e2348a2..eaeb91e 100644 --- a/src/msspec/parameters.py +++ b/src/msspec/parameters.py @@ -1516,13 +1516,13 @@ class CalculationParameters(BaseParameters): self.spec_parameters.calc_iren = 1 elif p.value.lower() == 'G_n'.lower(): self.spec_parameters.calc_iren = 2 - LOGGER.info(f"Renormalization activated with \'{p.value}\' method") + LOGGER.info("Renormalization activated with \'{}\' method".format(p.value)) def bind_renormalization_omega(self, p): omega = complex(p.value) self.spec_parameters.calc_renr = omega.real self.spec_parameters.calc_reni = omega.imag - LOGGER.info(f"Renormalization omega set to \'{p.value}\'") + LOGGER.info("Renormalization omega set to \'{}\'".format(p.value)) def bind_RA_cutoff_damping(self, p): self.spec_parameters.calc_ino = p.value @@ -1555,9 +1555,9 @@ class CalculationParameters(BaseParameters): LOGGER.info('Radial integrals taken into account: %s', p.value) if self.global_parameters.spinpol is False: LOGGER.warning( - f"'{p.name}' is ignored since the 'spinpol' global parameter is set " + "'{}' is ignored since the 'spinpol' global parameter is set " "to False. Enable spin polarization in the constructor of " - "your Calculator if you want to use this option.") + "your Calculator if you want to use this option.".format(p.name)) def bind_path_filtering(self, p): ifwd = ipw = ilength = 0