o
    ÞË·e@  ã                   @   s   d Z ddlZddlZddlZddlZdd„ ZdazddlmZ eej	ƒaW n	 e
y.   Y nw dd„ Ztdu rGedƒr>d	an	ed
ƒrEdandae dt¡atdvrXed t¡ƒ‚dejv rhtdkrhe d¡ dadZtdkrˆzddlmZ eZ[W n e
y‡   e d¡ Y nw td	kr¨zddlmZ eZ[W n e
y§   e d¡ daY nw z
ddlmZ dZW n e
y½   dZY nw dd„ Zdd„ Zdd„ Zdd„ ZdS ) zLDetermine which implementation of the protobuf API is used in this process.
é    Nc                 C   s,   | dkrdS | dkrt dƒ‚| dkrdS d S )Né   Úcppé   z%api_version=1 is no longer supported.r   Úpython)Ú
ValueError)Úapi_version© r   úb/var/www/ideatree/venv/lib/python3.10/site-packages/google/protobuf/internal/api_implementation.pyÚ_ApiVersionToImplementationType(   s   r
   )Ú_api_implementationc                 C   s6   zt  | ¡}|st| d ƒ‚W dS  ty   Y dS w )Nz import succeeded but was NoneTF)Ú	importlibÚimport_moduleÚImportError)Úmod_nameÚmodr   r   r	   Ú
_CanImport>   s   
ÿr   zgoogle._upb._messageÚupbzgoogle.protobuf.pyext._messager   r   Ú&PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION)r   r   r   zdPROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION {0} is not supported. Please set to 'python', 'cpp' or 'upb'.ÚPyPyz\PyPy does not work yet with cpp protocol buffers. Falling back to the python implementation.)Ú_messagez-Selected implementation cpp is not available.zXSelected implementation upb is not available. Falling back to the python implementation.)Ú(enable_deterministic_proto_serializationTFc                   C   ó   t S ©N©Ú_implementation_typer   r   r   r	   ÚType–   ó   r   c                 C   s   | a dS )z'Never use! Only for protobuf benchmark.Nr   )Úimplementation_typer   r   r	   Ú_SetTypeš   s   r   c                   C   s   dS )Nr   r   r   r   r   r	   ÚVersion¢   r   r   c                   C   r   r   )Ú)_python_deterministic_proto_serializationr   r   r   r	   Ú)IsPythonDefaultSerializationDeterministic§   r   r!   )Ú__doc__r   ÚosÚsysÚwarningsr
   r   Úgoogle.protobuf.internalr   r   r   r   Úgetenvr   ÚformatÚversionÚwarnÚ	_c_moduleÚgoogle.protobuf.pyextr   Úgoogle._upbÚgoogle.protobufr   r    r   r   r   r!   r   r   r   r	   Ú<module>   s€   
ÿÿÿþ
ÿü
üÿ