8000 gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97930: Apply changes from importlib_resources 5.10. #100598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Restore _adapters to prior state.
  • Loading branch information
jaraco committed Dec 29, 2022
commit 1637ad48b50afba42a0e9074821511a526d1818c
2 changes: 1 addition & 1 deletion Lib/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