def _url_paths_for_election(self, election, filename=None):
        """
        Retrieve URL metadata entries for a single election.

        Args:
            election: Election metadata dictionary as returned by the
            elections() method or string containing an election slug.

        Returns:
            A list of dictionaries, like the return value of
            ``_url_paths()``.

        """
        try:
            slug = election['slug']
        except __HOLE__:
            slug = election

        return [p for p in self._url_paths(filename) if p['election_slug'] == slug]
dataset/ETHPy150Open openelections/openelections-core/openelex/base/datasource.py/BaseDatasource._url_paths_for_election