Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jun 6, 2024
1 parent 7dee0e6 commit 3a3b209
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions empack/file_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def patter_from_dict(**d):
self.exclude_patterns = [patter_from_dict(**p) for p in exclude_patterns]

def match(self, path):
for ep in self.exclude_patterns:
if ep.match(path):
return False
return True
return all(not ep.match(path) for ep in self.exclude_patterns)


class PkgFileFilter:
Expand Down

0 comments on commit 3a3b209

Please sign in to comment.