Skip to content

mitogen: Refactor Importer.ALWAYS_BLACKLIST -> ImportPolicy.unsuitables#1453

Draft
moreati wants to merge 4 commits intomitogen-hq:masterfrom
moreati:issue1451-unsuitables
Draft

mitogen: Refactor Importer.ALWAYS_BLACKLIST -> ImportPolicy.unsuitables#1453
moreati wants to merge 4 commits intomitogen-hq:masterfrom
moreati:issue1451-unsuitables

Conversation

@moreati
Copy link
Copy Markdown
Member

@moreati moreati commented Feb 15, 2026

Populating ImportPolicy.unsuitables via ModuleReponder on the controller will allow the controller to dynamically add unsuitable prefixes it is aware of.

refs #1451

@moreati moreati force-pushed the issue1451-unsuitables branch 3 times, most recently from eb161cf to a4a52a5 Compare February 15, 2026 22:12
@moreati moreati force-pushed the issue1451-unsuitables branch from a4a52a5 to 91bf9c3 Compare February 15, 2026 22:25
…orters

These are not modules that Mitogen should block import of., the previous name
Importer.ALWAYS_BLACKLIST was a misnomer. It conflated their unsuitablility
for serving by Mitogen with the concept of modules that should be blocked from
import.

Mitogen should have no opinion about whether they're imported from a local
source. It is attempting to handle their import with Mitogen that we wish to
avoid.

With this cStringIO  (& probably other platform/version specific modules) can
be included regardless.
@moreati moreati force-pushed the issue1451-unsuitables branch from 72515d6 to 8c8aada Compare February 15, 2026 23:27
@moreati moreati force-pushed the issue1451-unsuitables branch 2 times, most recently from 58fd03a to 529ef0f Compare February 16, 2026 08:47
@moreati moreati force-pushed the issue1451-unsuitables branch from 529ef0f to 3780ddf Compare February 16, 2026 23:28
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