a
    SicÒ  ã                   @   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yH   dZY n0 edkrZe	dƒ‚edkrfdndZ
e d	e
¡atdkr‚dad
ejv r¢tdkr¢e d¡ dazddlmZ dZW n eyÌ   dZY n0 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   úg/var/www/html/django/DPS/env/lib/python3.9/site-packages/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ÚwarningsÚgoogle.protobuf.internalr   Úapi_versionZ_api_versionÚImportErrorÚ
ValueErrorZ_default_implementation_typeÚgetenvr   ÚversionÚwarnÚgoogle.protobufr   r   r   r   r   r   r   r   r   r   Ú<module>   s8   

ÿ

