
    Xh                     $    d dl Z d dlmZ defdZy)    N)partial
group_namec              #   v  K   t         j                  dk\  rB	 ddlm}  ||       }t	        |t
              s"|D ]  }|j                  |j                  f  y	 ddl	m
} |j                  |       D ]'  }|j                  t        |j                  d      f ) y# t        $ r Y Nw xY w# t        $ r Y yw xY w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        J/var/www/html/myenv/lib/python3.12/site-packages/babel/messages/_compat.pyfind_entrypointsr      s      7"	7 Z0C c4(#& ?K&++[-=-=>>?N- '88D 	NK##W[-=-=t%LMM	N!  		  sK   B9B ;B9B* <B9	B'$B9&B''B9*	B63B95B66B9)r   	functoolsr   strr        r   <module>r      s    
 N Nr   