aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-12-25 20:22:29 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2022-12-25 20:22:29 +0200
commitfc6842fea1d87995b97c80b99c97686939d9c388 (patch)
tree684e09f86c87755b20aa83f55d4cd87249ca728c /src/snakeoil
parentpyproject.toml: include license file in sdist (diff)
downloadsnakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.tar.gz
snakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.tar.bz2
snakeoil-fc6842fea1d87995b97c80b99c97686939d9c388.zip
fix small boolean values typo
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'src/snakeoil')
-rw-r--r--src/snakeoil/demandimport.py3
-rw-r--r--src/snakeoil/demandload.py3
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