
    Mh                     &    d dl Z d dlmZ defdZdS )    N)partial
group_namec              #   h  K   t           j        dk    rP	 ddlm}  ||           }t	          |t
                    s|D ]}|j        |j        fV  dS n# t          $ r Y nw xY w	 ddl	m
} |                    |           D ]!}|j        t          |j        d          fV  "dS # t          $ r Y dS w xY w)	z
    Find entrypoints of a given group using either `importlib.metadata` or the
    older `pkg_resources` mechanism.

    Yields tuples of the entrypoint name and a callable function that will
    load the actual entrypoint.
    )   
   r   )entry_points)groupN)working_setT)require)sysversion_infoimportlib.metadatar   
isinstancedictnameloadImportErrorpkg_resourcesr
   iter_entry_pointsr   )r   r   epsentry_pointr
   s        V/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/babel/messages/_compat.pyfind_entrypointsr      s:      7""	777777 ,Z000C c4(( #& ? ?K&+[-=>>>>>  	 	 	D	N------ '88DD 	N 	NK#W[-=t%L%L%LMMMMM	N 	N    s#   A 
A A $B# #
B10B1)r   	functoolsr   strr        r   <module>r      sL    



      N N N N N N Nr   