Skip to content

Commit 222aaed

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_resources/_adapters.py

+1-1
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)