Skip to content

Import submodules of importlib properly#74

Open
cjwatson wants to merge 1 commit into
etingof:masterfrom
cjwatson:tighten-importlib-imports
Open

Import submodules of importlib properly#74
cjwatson wants to merge 1 commit into
etingof:masterfrom
cjwatson:tighten-importlib-imports

Conversation

@cjwatson
Copy link
Copy Markdown

As reported in https://bugs.debian.org/1118055, import importlib doesn't guarantee that e.g. importlib.machinery.SOURCE_SUFFIXES is visible. This is often masked by things like .pth files that automatically import bits of importlib, but in a sufficiently-minimal environment this may not be the case. Explicitly importing the necessary submodules is safer.

As reported in https://bugs.debian.org/1118055, `import importlib`
doesn't guarantee that e.g. `importlib.machinery.SOURCE_SUFFIXES` is
visible.  This is often masked by things like `.pth` files that
automatically import bits of `importlib`, but in a sufficiently-minimal
environment this may not be the case.  Explicitly importing the
necessary submodules is safer.
@lextm
Copy link
Copy Markdown

lextm commented Oct 16, 2025

This repo is dead. You can read etingof/pysnmp#429 and see what you might want to do.

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.

2 participants