aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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