[3.13] gh-116608: Apply style and compatibility changes from importlib_resources. (GH-123028) by miss-islington · Pull Request #123051 · python/cpython

Oops. I wasn't aware that we were in RC phase. I guess I'd lost track of time.

I was considering this change blocking for #123037, not because the changes interact, but because when syncing the changes from importlib_resources@cpython to cpython@main, the files get copied wholesale (there's no VCS tracking), and these changes needed to be applied to get those codebases aligned.

I'll revert this change and then re-submit the backport to be blocked on cutting of 3.13.0.