Skip to content
Snippets Groups Projects
Commit b41c89a8 authored by Brecht Van Lommel's avatar Brecht Van Lommel
Browse files

Fix make format PATHS=/path/to/directory not working correctly

Error in recent change to filter out files with the wrong extension.
parent c1586ae2
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ def compute_paths(paths, use_default_paths):
else:
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
if not os.path.isfile(f) or f.endswith(extensions)
]
if os.sep != "/":
......
......@@ -64,7 +64,7 @@ def compute_paths(paths, use_default_paths):
# "Operating" on files that will be filtered out later on.
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
if not os.path.isfile(f) or f.endswith(extensions)
]
if os.sep != "/":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment