B
    £»ˆd×	  ã               @   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r˜ddl	Z
efZeefZeZeZd	ZnHddlZefZes®er¸eefZnefZeZesÎerØesØe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k	} n,yt d¡ d} W n tk
rB   d} Y nX | rRddl}n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	   )Znumpy_existsÚnp© r   úD/var/www/html/venv/lib/python3.7/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ÚPY2ZPY26ZPY27ZPY275r
   ÚPY34Zimportlib.machineryr   ÚstrÚstring_typesÚbytesÚ	bytearrayZbinary_typesÚrangeZ
range_funcÚ
memoryviewZmemoryview_typeZstruct_bool_declr   ÚunicodeÚxrangeÚbufferr   ÚRuntimeErrorr   r   r   r   r   Ú<module>   s6   
