diff options
author | 2022-12-25 20:22:29 +0200 | |
---|---|---|
committer | 2022-12-25 20:22:29 +0200 | |
commit | fc6842fea1d87995b97c80b99c97686939d9c388 (patch) | |
tree | 684e09f86c87755b20aa83f55d4cd87249ca728c | |
parent | pyproject.toml: include license file in sdist (diff) | |
download | snakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.tar.gz snakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.tar.bz2 snakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.zip |
fix small boolean values typo
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | src/snakeoil/demandimport.py | 3 | ||||
-rw-r--r-- | 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 0a24ccc..d95f515 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 3800622..bfa6dce 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 |