U
    ڲgr                     @   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|rB|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__ Z__protobuf__packageZ_default_packagemarshal)name)sysmodulesgethasattr__name__getattrobjectr   )r   attrsmodulemodule_nameZproto_moduler   r    r   7/tmp/pip-unpacked-wheel-zasgy6sz/proto/_package_info.pycompile   s      
r   )r   Zproto.marshalr   r   r   r   r   r   <module>   s   