File: //opt/cppython/lib/python3.8/site-packages/proto/__pycache__/_package_info.cpython-38.pyc
U
JD�gr � @ s d dl Z d dlmZ dd� ZdS )� N)�Marshalc C sb t j�|�d��}t|t�r"|jnd}t|dt� �}t|d|rB|nd�}tt|d|�d�}||fS )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_nameZproto_moduler r � r �@/opt/cppython/lib/python3.8/site-packages/proto/_package_info.py�compile s
�r )r Z
proto.marshalr r r r r r �<module> s