
    Hf                         d Z ddlZddlZddlmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ ej        d         dk    Zeoej        d	         d
k     Zej        d         dk    ZeZeZeZd Zd Zd ZddZd ZdS )z
    pyexcel._compact
    ~~~~~~~~~~~~~~~~~~~

    Compatibles

    :copyright: (c) 2014-2022 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for more details
    N)BytesIOStringIO)request)dedent)zip_longest)OrderedDict            c                 V    t          | t                    ot          | t                    S )z$check if all member were string type)
isinstancetupleis_array_typestr)an_arrays    R/var/www/ffwdstore.be/apps/py-env/lib/python3.11/site-packages/pyexcel/_compact.pyis_tuple_consists_of_stringsr   $   s!    h&&G=3+G+GG    c                 F    fd| D             }t          |          dk    S )z)check if all members are of the same typec                 4    g | ]}t          |          |S  )r   ).0iatypes     r   
<listcomp>z!is_array_type.<locals>.<listcomp>+   s(    
;
;
;jE&:&:
;1
;
;
;r   r   )len)r   r   tmps    ` r   r   r   )   s,    
;
;
;
;h
;
;
;Cs88q=r   c                 H    | t           k    rdS t          r| t          k    rdS dS )z find out if a type is str or notTF)r   PY2unicode)r   s    r   	is_stringr"   /   s-    ||t	 G45r   Deprecated!c                       fd}|S )zPrint deprecated messagec                  H    t          j        t                      | i |S )zPrint deperecated message)warningswarnDeprecationWarning)argkeywordsfuncmessages     r   innerzdeprecated.<locals>.inner<   s+    g1222tS%H%%%r   r   )r+   r,   r-   s   `` r   
deprecatedr.   9   s)    & & & & & &
 Lr   c                       fd}|S )Nc                 F    t          | j                  dz   z   | _        | S )N
)r   __doc__)r+   values    r   _doczappend_doc.<locals>._docE   s#    dl++d2U:r   r   )r3   r4   s   ` r   
append_docr5   D   s#         Kr   )r#   )r2   sysr&   ior   r   urllibr   textwrapr   	itertoolsr   collectionsr   version_infor    PY26PY3_AND_ABOVEobjectIteratorrangeirangezipczipr   r   r"   r.   r5   r   r   r   <module>rE      s,   " 


                  % % % % % %       ! ! ! ! ! ! # # # # # #	qQ
&s"Q& #q( 	
H H H
           r   