
    h                    T    S SK Jr  S SKrSSKJr   " S S\R                  \   5      rg)    )annotationsN   )ContainerIOc                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )TarIO   zHA file object that provides read access to a given member of a TAR file.c                z  > [        US5      U l         U R                  R                  S5      n[        U5      S:w  a'  U R                  R	                  5         Sn[        U5      eUSS R                  S5      nUR                  S5      nUS:X  a'  U R                  R	                  5         S	n[        U5      eUS:  a  USU n[        US
S S5      nX%:X  a  O2U R                  R                  US-   S-  [        R                  5        M  [        TU ]5  U R                  U R                  R                  5       U5        g)zZ
Create file object.

:param tarfile: Name of TAR file.
:param file: Name of member file.
rbi   zunexpected end of tar fileNd   zutf-8 r   zcannot find subfile|         i  i )openfhreadlencloseOSErrordecodefindintseekioSEEK_CURsuper__init__tell)	selftarfilefilesmsgnameisize	__class__s	           ;/var/www/html/env/lib/python3.13/site-packages/PIL/TarIO.pyr   TarIO.__init__   s    w%S!A1v}2cl"Tc7>>'*D		$AAv+cl"1uBQxqSz1%D|GGLL$*.</ 4 	$'',,.$7    )r   )r    strr!   r+   returnNone)__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classcell__)r'   s   @r(   r   r      s    R#8 #8r*   r   )
__future__r   r    r   bytesr    r*   r(   <module>r9      s'     # 	 &8K##E* &8r*   