1
0
Fork 0
forked from github/pelican

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

@ -170,7 +170,7 @@ class TestSettingsConfiguration(unittest.TestCase):
def test__printf_s_to_format_field(self):
for s in ("%s", "{%s}", "{%s"):
option = "foo/{}/bar.baz".format(s)
option = f"foo/{s}/bar.baz"
result = _printf_s_to_format_field(option, "slug")
expected = option % "qux"
found = result.format(slug="qux")