Skip to content

Commit 5e18308

Browse files
authored
Update sphinx_autobuild/filter.py
1 parent 08c18b7 commit 5e18308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_autobuild/filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __repr__(self):
2424
def __call__(self, filename: str, /):
2525
"""Determine if 'path' should be ignored."""
2626
normalised_path = Path(filename).resolve().as_posix()
27-
if os.getenv("SPHINX_AUTOBUILD_DEBUG") not in (None, "", "0"):
27+
if os.getenv("SPHINX_AUTOBUILD_DEBUG") not in {None, "", "0"}:
2828
print(
2929
f"SPHINX_AUTOBUILD_DEBUG: {normalised_path!r} has changed; "
3030
f"ignores are {self}"

0 commit comments

Comments
 (0)