We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c18b7 commit 5e18308Copy full SHA for 5e18308
sphinx_autobuild/filter.py
@@ -24,7 +24,7 @@ def __repr__(self):
24
def __call__(self, filename: str, /):
25
"""Determine if 'path' should be ignored."""
26
normalised_path = Path(filename).resolve().as_posix()
27
- if os.getenv("SPHINX_AUTOBUILD_DEBUG") not in (None, "", "0"):
+ if os.getenv("SPHINX_AUTOBUILD_DEBUG") not in {None, "", "0"}:
28
print(
29
f"SPHINX_AUTOBUILD_DEBUG: {normalised_path!r} has changed; "
30
f"ignores are {self}"
0 commit comments