Update code base for Python 3.8 and above

Result of: pipx run pyupgrade --py38-plus pelican/**/*.py
This commit is contained in:
Justin Mayer 2023-11-12 13:53:02 +01:00
commit ecd598f293
15 changed files with 58 additions and 64 deletions

View file

@ -235,7 +235,7 @@ class Content:
def _expand_settings(self, key, klass=None):
if not klass:
klass = self.__class__.__name__
fq_key = ("{}_{}".format(klass, key)).upper()
fq_key = (f"{klass}_{key}").upper()
return str(self.settings[fq_key]).format(**self.url_format)
def get_url_setting(self, key):