o
    iE	                     @   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 )zlA 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 )zRReturns 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   H/mnt/sdb/aimis/docanh/lib/python3.10/site-packages/flatbuffers/compat.pyimport_numpy8   s   
r   c                   @   s   e Zd ZdZdS )NumpyRequiredForThisFeaturezgError 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   R   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   
