Skip to content

Commit

Permalink
PEP 8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Jun 15, 2017
1 parent 938d604 commit 3eea649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def unfrack_paths(option, opt, value, parser):
elif isinstance(value, list):
setattr(parser.values, option.dest, [unfrackpath(x) for x in value])
else:
pass #FIXME: should we raise options error?
pass # FIXME: should we raise options error?

@staticmethod
def unfrack_path(option, opt, value, parser):
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/plugins/vars/host_group_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ def _get_dir_files(self, path):

found = []
for spath in os.listdir(path):
if not spath.startswith('.'): # skip hidden
if not spath.startswith('.'): # skip hidden

ext = os.path.splitext()[-1]
full_spath = os.path.join(path, spath)

if os.path.isdir(full_spath) and not ext: # recursive search if dir
if os.path.isdir(full_spath) and not ext: # recursive search if dir
found.extend(self._get_dir_files(full_spath))
elif os.path.isfile(full_spath) and (not ext or ext in C.YAML_FILENAME_EXTENSIONS):
# only consider files with valid extensions or no extension
Expand Down

0 comments on commit 3eea649

Please sign in to comment.