Skip to content

Use importlib.resources if possible#176

Open
nphilipp wants to merge 1 commit into
Yelp:masterfrom
nphilipp:master--use-importlib.resources-if-available
Open

Use importlib.resources if possible#176
nphilipp wants to merge 1 commit into
Yelp:masterfrom
nphilipp:master--use-importlib.resources-if-available

Conversation

@nphilipp
Copy link
Copy Markdown

@nphilipp nphilipp commented Aug 22, 2024

The importlib_resources package isn’t required from Python 3.7 on, it’s available in importlib.resources.

The importlib_resources package is only required for Python < 3.9.

@nphilipp
Copy link
Copy Markdown
Author

nphilipp commented Aug 22, 2024

Ahh, just noticed commit 5609ddf, “use importlib_resources since we need stuff introduced in python 3.9”. I’ll revise.

@nphilipp nphilipp closed this Aug 22, 2024
@nphilipp nphilipp deleted the master--use-importlib.resources-if-available branch August 22, 2024 12:25
@nphilipp nphilipp restored the master--use-importlib.resources-if-available branch August 22, 2024 12:29
@nphilipp nphilipp reopened this Aug 22, 2024
@nphilipp nphilipp force-pushed the master--use-importlib.resources-if-available branch from f76d5f3 to 297f74e Compare August 22, 2024 12:34
@nphilipp nphilipp changed the title Use importlib.resources if available Use importlib.resources if possible Aug 22, 2024
The importlib_resources package is only required for Python < 3.9.

Signed-off-by: Nils Philippsen <nils@redhat.com>
@nphilipp nphilipp force-pushed the master--use-importlib.resources-if-available branch from 297f74e to f66d61d Compare August 22, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant