o
    †­Rh×	  ã                   @   sü   d Z ddlZejd dkZejdd… dkZejdd… dkZejdd… dkZejd dkZejdd… dkZerLddl	Z
efZeefZeZeZd	Zn$ddlZefZesWer\eefZnefZeZesgerlesleZd
ZneZd	Zdd„ ZG dd„ deƒZdS )zm A tiny version of `six` to help with backwards compability. Also includes
 compatibility helpers for numpy. é    Né   )r   é   )r   é   é   )r   r   é   )r   é   ú?z<bc                  C   sZ   t rtjj d¡du} nz	t d¡ d} W n ty    d} Y nw | r)ddl}|S d}|S )zZ
    Returns the numpy module if it exists on the system,
    otherwise returns None.
    ÚnumpyNTFr   )	ÚPY3Ú	importlibÚ	machineryÚ
PathFinderÚ	find_specÚimpÚfind_moduleÚImportErrorr	   )Únumpy_existsÚnp© r   úT/home/air/sanwanet/backup_V2/venv/lib/python3.10/site-packages/flatbuffers/compat.pyÚimport_numpy3   s   ÿ
ÿþr   c                   @   s   e Zd ZdZdS )ÚNumpyRequiredForThisFeaturezo
    Error raised when user tries to use a feature that
    requires numpy without having numpy installed.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   N   s    r   )r   ÚsysÚversion_infoÚPY2ÚPY26ÚPY27ÚPY275r
   ÚPY34Úimportlib.machineryr   ÚstrÚstring_typesÚbytesÚ	bytearrayÚbinary_typesÚrangeÚ
range_funcÚ
memoryviewÚmemoryview_typeÚstruct_bool_declr   ÚunicodeÚxrangeÚbufferr   ÚRuntimeErrorr   r   r   r   r   Ú<module>   s8   
