Skip to content

Commit

Permalink
Convert 'format' usage to f-strings (prompt.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Jun 8, 2022
1 parent 164caa4 commit a1d4868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookiecutter/prompt.py
Expand Up @@ -66,9 +66,9 @@ def read_user_choice(var_name, options):
choice_lines = ['{} - {}'.format(*c) for c in choice_map.items()]
prompt = '\n'.join(
(
f'Select {var_name}:',
'\n'.join(choice_lines),
'Choose from {}'.format(', '.join(choices)),
f"Select {var_name}:",
"\n".join(choice_lines),
f"Choose from {', '.join(choices)}",
)
)

Expand Down

0 comments on commit a1d4868

Please sign in to comment.