Skip to content

Commit

Permalink
Convert 'format' usage to f-strings (zipfile.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Jun 8, 2022
1 parent f4996f2 commit 282cf58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cookiecutter/zipfile.py
Expand Up @@ -63,8 +63,7 @@ def unzip(zip_uri, is_url, clone_to_dir='.', no_input=False, password=None):
first_filename = zip_file.namelist()[0]
if not first_filename.endswith('/'):
raise InvalidZipRepository(
'Zip repository {} does not include '
'a top-level directory'.format(zip_uri)
f"Zip repository {zip_uri} does not include a top-level directory"
)

# Construct the final target directory
Expand Down

0 comments on commit 282cf58

Please sign in to comment.