PEP 8 fixes.

This commit is contained in:
Matt Clay 2017-06-15 15:54:05 -07:00
parent 938d60472a
commit 3eea649cbb
2 changed files with 3 additions and 3 deletions

View file

@ -283,7 +283,7 @@ class CLI(with_metaclass(ABCMeta, object)):
elif isinstance(value, list): elif isinstance(value, list):
setattr(parser.values, option.dest, [unfrackpath(x) for x in value]) setattr(parser.values, option.dest, [unfrackpath(x) for x in value])
else: else:
pass #FIXME: should we raise options error? pass # FIXME: should we raise options error?
@staticmethod @staticmethod
def unfrack_path(option, opt, value, parser): def unfrack_path(option, opt, value, parser):

View file

@ -121,12 +121,12 @@ class VarsModule(BaseVarsPlugin):
found = [] found = []
for spath in os.listdir(path): for spath in os.listdir(path):
if not spath.startswith('.'): # skip hidden if not spath.startswith('.'): # skip hidden
ext = os.path.splitext()[-1] ext = os.path.splitext()[-1]
full_spath = os.path.join(path, spath) 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)) found.extend(self._get_dir_files(full_spath))
elif os.path.isfile(full_spath) and (not ext or ext in C.YAML_FILENAME_EXTENSIONS): 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 # only consider files with valid extensions or no extension