Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit222aaed

Browse files
gpsheadjaraco
authored andcommitted
gh-82874: Convert remaining importlib format uses to f-str. (#98005)
f-yes
1 parentaf22800 commit222aaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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
elifmode=='rb':
3636
returnfile
3737
raiseValueError(
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)

[8]ページ先頭

©2009-2025 Movatter.jp