U
    L?h	                     @   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rddl	Z
efZeefZeZeZd	ZnHddlZefZesereefZnefZeZeserese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,z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.8/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   
