
    c                     J    	 d dl mZ n# e$ r d dlmZ d ZY nw xY wd Zd ZdS )    )get_group_namediter_entry_pointsc                 4    d t          |           D             S )z9Facade function to align old entry_points api to new one.c                     i | ]
}|j         |S  )name).0plugins     Alib/python3.11/site-packages/anaconda_project/internal/plugins.py
<dictcomp>z#get_group_named.<locals>.<dictcomp>   s    PPPVPPP    r   )
group_names    r   r   r      s    PP2CJ2O2OPPPPr   c                 r    d t          t          |                                                     D             S )z/Return all the entry points plugins registered.c                 >    i | ]\  }}||                                 S r   )load)r
   r	   r   s      r   r   z-_get_entry_points_plugins.<locals>.<dictcomp>   s&    gggLD&D&++--gggr   )sortedr   itemsentry_point_groups    r   _get_entry_points_pluginsr      s3    ggF?K\;];];c;c;e;e4f4fggggr   c                 0    d| z  }t          |          }|S )a>  Return all the entry points plugins registered that implement that hook.

    The function will return all the plugins that implement the specified
    type of hook.

    Args:
        - plugin_hook_type(str): type of hook

    Output:
        (dict) with plugin name as key and plugin generator function as value
    zanaconda_project.plugins.%sr   )r   )plugin_hook_typecommand_typeentry_point_pluginss      r   get_pluginsr      s&     13CCL3lSSSr   N)entrypointsr   ImportErrorpkg_resourcesr   r   r   r   r   r   <module>r       s   Q+++++++ Q Q Q//////Q Q Q Q QQh h h
    s   	 