
    g	                     t   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n$d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 Z G d de      Zy)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                      t         r,t        j                  j                  j	                  d      du} n	 t        j                  d       d} | rddl}|S d}|S # t        $ r d} Y w xY w)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nps     G/var/www/openai/venv/lib/python3.12/site-packages/flatbuffers/compat.pyimport_numpyr   3   st    
 **44W=TI 		!OOG$L 
 	 I I  	! L	!s   A A%$A%c                       e Zd ZdZy)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   N   s     	r   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   <module>r6      s  & 	qQ
!&
!&1*	qQ
!&6L)$LJ O:LtIvJU $6	, 	r   