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:
parent
903ce3ce33
commit
ecd598f293
15 changed files with 58 additions and 64 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue