U
    UºcÒ  ã                   @   sö   d Z ddlZddlZddlZzddlmZ ejZW n ek
rJ   dZY nX edkr\e	dƒ‚edkrhdndZ
e d	e
¡atdkr„dad
ejkr¤tdkr¤e d¡ dazddlmZ dZW n ek
rÐ   dZY nX 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.
é    N)Ú_api_implementationéÿÿÿÿé   z%api_version=1 is no longer supported.ÚcppÚpythonZ&PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATIONÚPyPyz\PyPy does not work yet with cpp protocol buffers. Falling back to the python implementation.)Ú(enable_deterministic_proto_serializationTFc                   C   s   t S ©N©Ú_implementation_type© r   r   úO/tmp/pip-unpacked-wheel-j7ilztv9/google/protobuf/internal/api_implementation.pyÚType_   s    r   c                 C   s   | a dS )z'Never use! Only for protobuf benchmark.Nr
   )Zimplementation_typer   r   r   Ú_SetTypec   s    r   c                   C   s   dS )Né   r   r   r   r   r   ÚVersionj   s    r   c                   C   s   t S r	   )Ú)_python_deterministic_proto_serializationr   r   r   r   Ú)IsPythonDefaultSerializationDeterministico   s    r   )Ú__doc__ÚosÚsysÚwarningsZgoogle.protobuf.internalr   Úapi_versionZ_api_versionÚImportErrorÚ
ValueErrorZ_default_implementation_typeÚgetenvr   ÚversionÚwarnZgoogle.protobufr   r   r   r   r   r   r   r   r   r   Ú<module>   s8   

ÿ

