[elbe-devel] [PATCH 2/5] elbepack: don't modify global warning behaviour
Benedikt Spranger
b.spranger at linutronix.de
Thu Mar 7 09:29:00 CET 2024
Am Tue, 5 Mar 2024 16:11:56 +0100
schrieb Thomas Weißschuh <thomas.weissschuh at linutronix.de>:
> The calls to warnings.simplefilter() modify the global warning
> configuration. Doing it at import-time and without
> warnings.catch_warnings() means that this configuration is changed in
> essentially unpredictable ways.
>
> Instead the warnings should only be configured at the entrypoints or in
> a limited scope with `warnings.catch_warnings()`.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Reviewed-by: Benedikt Spranger <b.spranger at linutronix.de>
More information about the elbe-devel
mailing list