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 /src/click/_unicodefun.py | |
| parent | d8bd5b1e6ececb9f8ee7cc05a94216b86ce80aed (diff) | |
| download | click-03dabdda8e48f0f87f13d24b9a2e65c1b0807635.tar.gz | |
f-strings everywhere
Diffstat (limited to 'src/click/_unicodefun.py')
| -rw-r--r-- | src/click/_unicodefun.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/click/_unicodefun.py b/src/click/_unicodefun.py index 57545e0..7f3f234 100644 --- a/src/click/_unicodefun.py +++ b/src/click/_unicodefun.py @@ -55,9 +55,9 @@ def _verify_python3_env(): ) else: extra += ( - "This system lists a couple of UTF-8 supporting locales" - " that you can pick from. The following suitable" - " locales were discovered: {}".format(", ".join(sorted(good_locales))) + "This system lists some UTF-8 supporting locales that" + " you can pick from. The following suitable locales" + f" were discovered: {', '.join(sorted(good_locales))}" ) bad_locale = None @@ -71,12 +71,12 @@ def _verify_python3_env(): "\n\nClick discovered that you exported a UTF-8 locale" " but the locale system could not pick up from it" " because it does not exist. The exported locale is" - " '{}' but it is not supported".format(bad_locale) + f" {bad_locale!r} but it is not supported" ) raise RuntimeError( "Click will abort further execution because Python 3 was" " configured to use ASCII as encoding for the environment." " Consult https://click.palletsprojects.com/python3/ for" - " mitigation steps.{}".format(extra) + f" mitigation steps.{extra}" ) |
