+
     Bi.                         . R
Ot Rt^ RIHt ^ RIHt ^ RIt^ RIt^ RI	H
t
Ht ^t^t ! R R ]P                  4      tRR ltRR ltR	 tR# )BZ2Filez%Nadeem Vawda <nadeem.vawda@gmail.com>)open)_streamsN)BZ2CompressorBZ2Decompressorc                      a  ] tR t^t o RR^	/R lltR t]R 4       t]R 4       t]R 4       t	R t
R tR	 tR
 tRR ltRR ltRR ltR tRR ltRR ltR tR t]P.                  3R ltR tRtV tR# )r   compresslevelc               8   R V n         RV n        R V n        ^Tu;8:  d   ^	8:  g   M \        R4      hVR9   d
   Rp\        pMoVR9   d   Rp\
        p\        V4      V n        MOVR9   d   Rp\
        p\        V4      V n        M/VR9   d   Rp\
        p\        V4      V n        M\        RV: 24      h\        V\        \        \        P                  34      '       d   \        W4      V n         RV n        W@n        M<\        VR	4      '       g   \        VR
4      '       d   Wn         W@n        M\        R4      hV P                  \        8X  dI   \         P"                  ! V P                   \$        \&        R7      p\(        P*                  ! V4      V n        R # ^ V n        R # )NFz%compresslevel must be between 1 and 9rbwbxbabInvalid mode: Treadwritez6filename must be a str, bytes, file or PathLike object)trailing_error) rr
   )wr   )xr   )ar   )_fp_closefp_mode
ValueError
_MODE_READ_MODE_WRITEr   _compressor
isinstancestrbytesosPathLike_builtin_openhasattr	TypeErrorr   DecompressReaderr   OSErrorioBufferedReader_buffer_pos)selffilenamemoder   	mode_coderaws   &&&$  /usr/lib/python3.14/bz2.py__init__BZ2File.__init__%   sN   $ 
]'a'DEE?"D"I[ D#I,];D[ D#I,];D[ D#I,];D49::heR[[ 9::$X4DH DM"JXv&&'(G*D*DH"JTUU::#++DHH9C,,S1DLDI    c                   V P                   '       d   R #  V P                  \        8X  d   V P                  P	                  4        MOV P                  \
        8X  d;   V P                  P                  V P                  P                  4       4       R V n         V P                  '       d   V P                  P	                  4        R V n        RV n
        R V n        R #   R T n        RT n
        R T n        i ; i   T P                  '       d   T P                  P	                  4        R T n        RT n
        R T n        i   R T n        RT n
        R T n        i ; i; i)NF)closedr   r   r*   closer   r   r   r   flushr   r,   s   &r1   r7   BZ2File.closea   s     ;;;	$zzZ'""${*t//5578#' $===HHNN$ %#   %#$===HHNN$ %#   %#s0   A?C3 ,C C03E5,D7!E7EEc                    V P                   R J # N)r   r9   s   &r1   r6   BZ2File.closedx   s     xx4r4   c                N    V P                  4        V P                  P                  # r<   )_check_not_closedr   namer9   s   &r1   r@   BZ2File.name}   s     xx}}r4   c                4    V P                   \        8X  d   R # R# )r   r
   )r   r   r9   s   &r1   r.   BZ2File.mode   s    zz[0t:d:r4   c                V    V P                  4        V P                  P                  4       # r<   )r?   r   filenor9   s   &r1   rE   BZ2File.fileno   s     xx  r4   c                f    V P                  4       ;'       d    V P                  P                  4       # r<   )readabler*   seekabler9   s   &r1   rI   BZ2File.seekable   s#    }}::4<<#8#8#::r4   c                H    V P                  4        V P                  \        8H  # r<   )r?   r   r   r9   s   &r1   rH   BZ2File.readable   s     zzZ''r4   c                H    V P                  4        V P                  \        8H  # r<   )r?   r   r   r9   s   &r1   writableBZ2File.writable   s     zz[((r4   c                X    V P                  4        V P                  P                  V4      # r<   )_check_can_readr*   peek)r,   ns   &&r1   rR   BZ2File.peek   s'     	 ||  ##r4   c                X    V P                  4        V P                  P                  V4      # r<   )rQ   r*   r   r,   sizes   &&r1   r   BZ2File.read   s%     	||  &&r4   c                    V P                  4        V^ 8  d   \        P                  pV P                  P	                  V4      #     )rQ   r(   DEFAULT_BUFFER_SIZEr*   read1rV   s   &&r1   r]   BZ2File.read1   s7     	!8))D||!!$''r4   c                X    V P                  4        V P                  P                  V4      # r<   )rQ   r*   readinto)r,   bs   &&r1   r`   BZ2File.readinto   s%    
 	||$$Q''r4   c                    \        V\        4      '       g.   \        VR 4      '       g   \        R4      hVP	                  4       pV P                  4        V P                  P                  V4      # 	__index__zInteger argument expected)r   intr$   r%   re   rQ   r*   readlinerV   s   &&r1   rg   BZ2File.readline   sW     $$$4-- ;<<>>#D||$$T**r4   c                    \        V\        4      '       g.   \        VR 4      '       g   \        R4      hVP	                  4       pV P                  4        V P                  P                  V4      # rd   )r   rf   r$   r%   re   rQ   r*   	readlinesrV   s   &&r1   rj   BZ2File.readlines   sW     $$$4-- ;<<>>#D||%%d++r4   c                B   V P                  4        \        V\        \        34      '       d   \	        V4      pM\        V4      pVP                  pV P                  P                  V4      pV P                  P                  V4       V ;P                  V,          un        V# r<   )_check_can_writer   r    	bytearraylen
memoryviewnbytesr   compressr   r   r+   )r,   datalength
compresseds   &&  r1   r   BZ2File.write   sy     	dUI.//YF d#D[[F%%..t4
z"		V	r4   c                @    \         P                  P                  W4      # r<   )r   
BaseStream
writelines)r,   seqs   &&r1   ry   BZ2File.writelines   s     ""--d88r4   c                X    V P                  4        V P                  P                  W4      # r<   )_check_can_seekr*   seek)r,   offsetwhences   &&&r1   r~   BZ2File.seek   s%     	||  00r4   c                    V P                  4        V P                  \        8X  d   V P                  P	                  4       # V P
                  # r<   )r?   r   r   r*   tellr+   r9   s   &r1   r   BZ2File.tell  s7     ::#<<$$&&yyr4   )r*   r   r   r   r   r+   N)r   rZ   ))__name__
__module____qualname____firstlineno__r2   r7   propertyr6   r@   r.   rE   rI   rH   rN   rR   r   r]   r`   rg   rj   r   ry   r(   SEEK_SETr~   r   __static_attributes____classdictcell__)__classdict__s   @r1   r   r      s     :A :x$.       ; ;!
;(
)

$'
((+,*9 #%++ 1$ r4   c                 B   R V9   d   RV9   d   \        RV: 24      hM-Ve   \        R4      hVe   \        R4      hVe   \        R4      hVP                  R R4      p\        WVR7      pR V9   d.   \        P                  ! V4      p\        P
                  ! WsWE4      # V# )tra   r   z0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary moder   )r   )r   replacer   r(   text_encodingTextIOWrapper)r-   r.   r   encodingerrorsnewlinebz_modebinary_files   &&&&&&  r1   r   r     s    * d{$;49::  OPPMNNNOOll3#G(=IK
d{##H-vGGr4   c                 d    \        V4      pVP                  V 4      VP                  4       ,           # r<   )r   rr   r8   )rs   r   comps   && r1   rr   rr   A  s(     'D==--r4   c                    . pV '       dY   \        4       p VP                  V 4      pTP                  T4       TP                  '       g   \        R 4      hTP                  p K`  RP                  V4      #   \         d    T'       d    K'  h i ; i)zACompressed data ended before the end-of-stream marker was reachedr4   )r   
decompressr'   appendeofr   unused_datajoin)rs   resultsdecompress   &   r1   r   r   L  s    
 G
 "	##D)C 	szzz @ A A!!88G  			s   A4 4B
B)r   r   r   r   rr   r   )r
   	   NNN)r   )__all__
__author__builtinsr   r#   compression._commonr   r(   r!   _bz2r   r   r   r   rx   r   rr   r    r4   r1   <module>r      sS   - 5
 * ( 	 	 / 
zh!! zz'T.r4   