FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-82874: Convert remaining importlib format uses to f-str. (#98005) · python/importlib_resources@222aaed · GitHub

Commit 222aaed

Browse files
authored andcommitted
gh-82874: Convert remaining importlib format uses to f-str. (#98005)
f-yes
1 parent af22800 commit 222aaed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎importlib_resources/_adapters.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _io_wrapper(file, mode='r', *args, **kwargs):
3535
elif mode == 'rb':
3636
return file
3737
raise ValueError(
38-
"Invalid mode value '{}', only 'r' and 'rb' are supported".format(mode)
38+
f"Invalid mode value '{mode}', only 'r' and 'rb' are supported"
3939
)
4040

4141

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL