snakeoil.demandload module

snakeoil.demandload.demand_compile_regexp(name: str, pattern: str, flags=0, /, scope: dict[str, Any] | None = None) None[source]

Lazily reify a re.compile.

The mechanism of injecting into the scope is deprecated; move to snakeoil.delayed.regexp.