Skip to content

Commit

Permalink
Update sphinx_autobuild/filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner authored Sep 3, 2024
1 parent d279bee commit 482a047
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sphinx_autobuild/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def __call__(self, path):
# Any regular pattern matches.
for pattern in self.regular_patterns:
# Expand the pattern into a list of files that match a glob
matched_files = [
os.path.abspath(ii) for ii in glob(pattern, recursive=True)
matched_files = set(map(os.path.abspath, glob(pattern, recursive=True)))
]

if path_expanded in matched_files:
Expand Down

0 comments on commit 482a047

Please sign in to comment.