Skip to content

Commit

Permalink
fix python black issues (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
richm authored Feb 1, 2023
1 parent 55be503 commit b1a123c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ansible_role_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def get_item_type(item):


class LSRFileTransformerBase(object):

# we used to try to not deindent comment lines in the Ansible yaml,
# but this changed the indentation when comments were used in
# literal strings, which caused test failures - so for now, we
Expand Down Expand Up @@ -249,7 +248,7 @@ def __init__(
self.role_name = os.path.basename(self.role_path)

def run(self):
for (dirpath, _, filenames) in os.walk(self.role_path):
for dirpath, _, filenames in os.walk(self.role_path):
if self.is_role_dir:
role_dir, _ = get_role_dir(self.role_path, dirpath)
if not role_dir:
Expand Down
3 changes: 1 addition & 2 deletions lsr_role2collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def get_item_type(item):


class LSRFileTransformerBase(object):

# we used to try to not deindent comment lines in the Ansible yaml,
# but this changed the indentation when comments were used in
# literal strings, which caused test failures - so for now, we
Expand Down Expand Up @@ -277,7 +276,7 @@ def __init__(
self.role_name = os.path.basename(self.role_path)

def run(self):
for (dirpath, _, filenames) in os.walk(self.role_path):
for dirpath, _, filenames in os.walk(self.role_path):
if self.is_role_dir:
role_dir, _ = get_role_dir(self.role_path, dirpath)
if not role_dir:
Expand Down
2 changes: 1 addition & 1 deletion report-modules-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def handle_item(item, filectx):

def os_walk(from_path):
if os.path.isdir(from_path) and not os.path.islink(from_path):
for (dirpath, _, filenames) in os.walk(from_path):
for dirpath, _, filenames in os.walk(from_path):
for filename in filenames:
filepath = os.path.join(dirpath, filename)
yield filepath
Expand Down

0 comments on commit b1a123c

Please sign in to comment.