def METHOD_NAME(patches_dir, series_file, join_dir=False):
    """
    Returns a generator over the entries in the series file
    patches_dir is a pathlib.Path to the directory of patches
    series_file is a pathlib.Path relative to patches_dir
    join_dir indicates if the patches_dir should be joined with the series entries
    """
    for entry in parse_series(patches_dir / series_file):
        if join_dir:
            yield patches_dir / entry
        else:
            yield entry