gh-82874: Convert remaining importlib format uses to f-str. (#98005)

f-yes
This commit is contained in:
Gregory P. Smith 2022-10-06 18:27:51 -07:00 committed by GitHub
parent fa2d43e518
commit 27369ef56f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 28 deletions

View file

@ -35,7 +35,7 @@ def _io_wrapper(file, mode='r', *args, **kwargs):
elif mode == 'rb':
return file
raise ValueError(
"Invalid mode value '{}', only 'r' and 'rb' are supported".format(mode)
f"Invalid mode value '{mode}', only 'r' and 'rb' are supported"
)