diff options
| author | David Lord <davidism@gmail.com> | 2020-04-19 23:54:14 -0700 |
|---|---|---|
| committer | David Lord <davidism@gmail.com> | 2020-04-19 23:58:30 -0700 |
| commit | 03dabdda8e48f0f87f13d24b9a2e65c1b0807635 (patch) | |
| tree | 7f195251ffdb1399d0b289d4c0146e5c5e6027a2 /examples/imagepipe | |
| parent | d8bd5b1e6ececb9f8ee7cc05a94216b86ce80aed (diff) | |
| download | click-03dabdda8e48f0f87f13d24b9a2e65c1b0807635.tar.gz | |
f-strings everywhere
Diffstat (limited to 'examples/imagepipe')
| -rw-r--r-- | examples/imagepipe/imagepipe.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/imagepipe/imagepipe.py b/examples/imagepipe/imagepipe.py index 95f5c42..57432fa 100644 --- a/examples/imagepipe/imagepipe.py +++ b/examples/imagepipe/imagepipe.py @@ -230,9 +230,8 @@ def smoothen_cmd(images, iterations): """Applies a smoothening filter.""" for image in images: click.echo( - "Smoothening '{}' {} time{}".format( - image.filename, iterations, "s" if iterations != 1 else "" - ) + f"Smoothening {image.filename!r} {iterations}" + f" time{'s' if iterations != 1 else ''}" ) for _ in range(iterations): image = copy_filename(image.filter(ImageFilter.BLUR), image) |
