'Return the entry point map for `group`, or the full entry map'

def get_entry_map(self, group=None):

    try:
        ep_map = self._ep_map
    except AttributeError:
        ep_map = self._ep_map = EntryPoint.parse_map(self._get_metadata('entry_points.txt'), self)
    if (group is not None):
        return ep_map.get(group, {})
    return ep_map
