autoflake.py
def is_exclude_file(filename, exclude):
    """Return True if file matches exclude pattern."""
    base_name = os.path.basename(filename)

    if base_name.startswith('.'):
        return True

    for pattern in exclude:
        if fnmatch.fnmatch(base_name, pattern):
            return True
        if fnmatch.fnmatch(filename, pattern):
            return True
    return False
def is_exclude_file(filename, exclude):
    base_name = os.path.basename(filename)

    if base_name.startswith('.'):
        return True

    for pattern in exclude:
        if fnmatch.fnmatch(base_name, pattern):
            return True
        if fnmatch.fnmatch(filename, pattern):
            return True
    return False
def is_exclude_file ( filename , exclude ) : base_name = os . path . basename ( filename ) if base_name . startswith ( '.' ) : return True for pattern in exclude : if fnmatch . fnmatch ( base_name , pattern ) : return True if fnmatch . fnmatch ( filename , pattern ) : return True return False
Return True if file matches exclude pattern.
Return True if file matches exclude pattern .