Skip to content

Commit

Permalink
gh-82874: Convert remaining importlib format uses to f-str. (#98005)
Browse files Browse the repository at this point in the history
f-yes
  • Loading branch information
gpshead authored and jaraco committed Dec 29, 2022
1 parent af22800 commit 222aaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importlib_resources/_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down

0 comments on commit 222aaed

Please sign in to comment.