mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use f-strings in place of .format()
Code transformed like so:
pip install flynt
flynt .
black .
This commit is contained in:
parent
6fd35be64d
commit
30e64c8d3b
35 changed files with 213 additions and 277 deletions
|
|
@ -16,7 +16,7 @@ def update_help_includes():
|
|||
for name, filename in includes:
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, name.split() + ["--help"], terminal_width=88)
|
||||
actual = "$ datasette {} --help\n\n{}".format(name, result.output)
|
||||
actual = f"$ datasette {name} --help\n\n{result.output}"
|
||||
actual = actual.replace("Usage: cli ", "Usage: datasette ")
|
||||
open(docs_path / filename, "w").write(actual)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue