mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
ruff UP031 in files: use format specifiers instead of percent format
This commit is contained in:
parent
3e81af966a
commit
30bde3823f
12 changed files with 47 additions and 50 deletions
|
|
@ -250,7 +250,7 @@ class Content:
|
|||
def get_url_setting(self, key: str) -> str:
|
||||
if hasattr(self, "override_" + key):
|
||||
return getattr(self, "override_" + key)
|
||||
key = key if self.in_default_lang else "lang_%s" % key
|
||||
key = key if self.in_default_lang else f"lang_{key}"
|
||||
return self._expand_settings(key)
|
||||
|
||||
def _link_replacer(self, siteurl: str, m: re.Match) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue