
    Nh                       S r SSKJr  SSKJr  SSKJr   SSKrSr SSK
r
Sr    SS jr\(       a   " S	 S
\R                  5      r\(       a   " S S\
R                  5      rgg! \	 a    Sr NTf = f! \	 a    Sr N[f = f)zC
Patched ``BZ2File`` and ``LZMAFile`` to handle pickle protocol 5.
    )annotations)PickleBuffer)PY310NTFc                    [        U [        [        45      (       a  U $ [        U [        5      (       d  [        U 5      n  U R	                  5       $ ! [
         a    [        U 5      R                  S5      s $ f = f)z
Return some 1-D `uint8` typed buffer.

Coerces anything that does not match that description to one that does
without copying if possible (otherwise will copy).
A)
isinstancebytes	bytearrayr   rawBufferError
memoryviewtobytes)bs    K/var/www/html/env/lib/python3.13/site-packages/pandas/compat/compressors.pyflatten_bufferr      se     !eY'((a&&O*uuw *!}$$S))*s   A $A65A6c                  F   ^  \ rS rSr\(       d  SU 4S jjrSrU =r$ SrU =r$ )BZ2File4   c                4   > [         TU ]  [        U5      5      $ Nsuperwriter   selfr   	__class__s     r   r   BZ2File.write7        w}^A%677     returnint__name__
__module____qualname____firstlineno__r   r   __static_attributes____classcell__r   s   @r   r   r   4       8 8 r   r   c                  F   ^  \ rS rSr\(       d  SU 4S jjrSrU =r$ SrU =r$ )LZMAFileC   c                4   > [         TU ]  [        U5      5      $ r   r   r   s     r   r   LZMAFile.writeF   r   r   r    r!   r$   r+   s   @r   r.   r.   C   r,   r   r.   )r   z-bytes | bytearray | memoryview | PickleBufferr"   zbytes | bytearray | memoryview)__doc__
__future__r   pickler   pandas.compat._constantsr   bz2has_bz2ImportErrorlzmahas_lzmar   r   r.   r    r   r   <module>r;      s    #  *GH
*4*#*0 
8#++ 
8 
84== 
8 e  G  Hs"   A& A4 &A10A14A?>A?