o
    ýÞhr  ã                   @   s    d dl Z d dlmZ dd„ ZdS )é    N)ÚMarshalc                 C   sb   t j | d¡¡}t|tƒr|jnd}t|dtƒ ƒ}t|d|r!|ndƒ}tt|d|ƒd�}||fS )a€  Return the package and marshal to use.

    Args:
        name (str): The name of the new class, as sent to ``type.__new__``.
        attrs (Mapping[str, Any]): The attrs for a new class, as sent
            to ``type.__new__``

    Returns:
        Tuple[str, ~.Marshal]:
            - The proto package, if any (empty string otherwise).
            - The marshal object to use.
    Ú
__module__Ú Ú__protobuf__ÚpackageÚ_default_packageÚmarshal)Úname)ÚsysÚmodulesÚgetÚhasattrÚ__name__ÚgetattrÚobjectr   )r	   ÚattrsÚmoduleÚmodule_nameÚproto_moduler   r   © r   úS/var/www/html/premium_crap/venv/lib/python3.10/site-packages/proto/_package_info.pyÚcompile   s   ÿr   )r
   Úproto.marshalr   r   r   r   r   r   Ú<module>   s   