def _strip_potential_suffixes(entries, potential_suffixes):
    """Strip the potential suffixes from each entry in the given list."""
    result = []
    for entry in entries:
        for suffix in potential_suffixes:
            if entry.endswith(suffix):
                entry = entry[:-len(suffix)]

        if entry:
            result.append(entry)

    return result