From fc6842fea1d87995b97c80b99c97686939d9c388 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sun, 25 Dec 2022 20:22:29 +0200 Subject: fix small boolean values typo Signed-off-by: Arthur Zamarin --- src/snakeoil/demandimport.py | 3 ++- src/snakeoil/demandload.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/snakeoil/demandimport.py b/src/snakeoil/demandimport.py index 0a24ccc5..d95f515e 100644 --- a/src/snakeoil/demandimport.py +++ b/src/snakeoil/demandimport.py @@ -56,7 +56,8 @@ def enable(): """Enable lazy loading for all future module imports.""" if os.environ.get("SNAKEOIL_DEMANDIMPORT", "y").lower() not in ( "n", - "no" "0", + "no", + "0", "false", ): sys.path_hooks.insert(0, _filefinder) diff --git a/src/snakeoil/demandload.py b/src/snakeoil/demandload.py index 3800622f..bfa6dce7 100644 --- a/src/snakeoil/demandload.py +++ b/src/snakeoil/demandload.py @@ -313,7 +313,8 @@ def disabled_demand_compile_regexp(name, *args, **kwargs): if os.environ.get("SNAKEOIL_DEMANDLOAD_DISABLED", "n").lower() in ( "y", - "yes" "1", + "yes", + "1", "true", ): demandload = disabled_demandload -- cgit v1.2.3-65-gdbad