(files, ignore_hidden, ignore_vcs)
Create a generator to return the filtered files
Create a generator to return the filtered files
Create a generator to return the filtered files
def filtered_files(files, ignore_hidden, ignore_vcs):
    '''
    Create a generator to return the filtered files
    '''
    for f in files:
        if ignore_hidden and f.startswith('.'):
            continue
        if ignore_vcs and f in VCS_FILES:
            continue

        yield f
def filtered_files ( files , ignore_hidden , ignore_vcs ) : for f in files : if ignore_hidden and f . startswith ( '.' ) : continue if ignore_vcs and f in VCS_FILES : continue yield f