Skip to content

Commit

Permalink
Please flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamere-allo-peter committed Apr 26, 2022
1 parent f88c71e commit 2caa490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yamlfixer/yamlfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def recurse(self, path, fnmapping, level=0):
if entry.is_file() and self.matchesext(entry.name):
# Ensures uniqueness based on absolute path
fnmapping[os.path.abspath(entry.path)] = entry.path
elif entry.is_dir(follow_symlinks=False):
if (self.arguments.recurse < 0) or (level < self.arguments.recurse):
self.recurse(entry.path, fnmapping, level + 1)
elif entry.is_dir(follow_symlinks=False) and ((self.arguments.recurse < 0)
or (level < self.arguments.recurse)):
self.recurse(entry.path, fnmapping, level + 1)

def generate_unique_filenames(self, fnames):
"""Generate a list of unique filenames."""
Expand Down

0 comments on commit 2caa490

Please sign in to comment.