parameters: (fnames)
return_statement: return [f for f in fnames
            if not any(e for e in exclude_paths
                    if _IsParentOrSame(e, os.path.abspath(f)))]
docstring: Filters out files listed in the --exclude command line switch. File paths
    in the switch are evaluated relative to the current working directory
docstring_summary: Filters out files listed in the --exclude command line switch. File paths
    in the switch are evaluated relative to the current working directory
docstring_tokens: Filters out files listed in the -- exclude command line switch . File paths in the switch are evaluated relative to the current working directory
function: def _FilterExcludedFiles(fnames):
    """Filters out files listed in the --exclude command line switch. File paths
    in the switch are evaluated relative to the current working directory
    """
    exclude_paths = [os.path.abspath(f) for f in _excludes]
    # because globbing does not work recursively, exclude all subpath of all excluded entries
    return [f for f in fnames
            if not any(e for e in exclude_paths
                    if _IsParentOrSame(e, os.path.abspath(f)))]
function_tokens: def _FilterExcludedFiles ( fnames ) : exclude_paths = [ os . path . abspath ( f ) for f in _excludes ] # because globbing does not work recursively, exclude all subpath of all excluded entries return [ f for f in fnames if not any ( e for e in exclude_paths if _IsParentOrSame ( e , os . path . abspath ( f ) ) ) ]