def get_tracignore_patterns(env_parent_dir):
    """Return the list of patterns from env_parent_dir/.tracignore or
    a default pattern of `".*"` if the file doesn't exist.
    """
    path = os.path.join(env_parent_dir, '.tracignore')
    try:
        lines = [line.strip() for line in read_file(path).splitlines()]
    except __HOLE__:
        return ['.*']
    return [line for line in lines if line and not line.startswith('#')]
dataset/ETHPy150Open edgewall/trac/trac/web/main.py/get_tracignore_patterns