mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-82874: Convert remaining importlib format uses to f-str. (#98005)
f-yes
This commit is contained in:
parent
fa2d43e518
commit
27369ef56f
5 changed files with 24 additions and 28 deletions
|
@ -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"
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue