https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/duplicity/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/duplicity/__pycache__/filechunkio.cpython-310.pyc
o

�~�_�
�@sJddlZddlZeedd�Zeedd�Zeedd�ZGdd�dej�ZdS)	�N�SEEK_SET�SEEK_CUR��SEEK_END�cs\eZdZdZd�fdd�	Zef�fdd	�	Z�fd
d�Zd�fd
d�	Zdd�Z	dd�Z
�ZS)�FileChunkIOzA
    A class that allows you reading only a chunk of a file.
    �rTrNcsj|�d�s	td��||_||_|durt�|�j|j|_tt|�j	|||g|�Ri|��|�
d�dS)a/
        Open a file chunk. The mode can only be 'r' for reading. Offset
        is the amount of bytes that the chunks starts after the real file's
        first byte. Bytes defines the amount of bytes the chunk has, which you
        can set to None to include the last byte of the real file.
        rzMode string must begin with 'r'Nr)�
startswith�
ValueError�offset�bytes�os�stat�st_size�superr�__init__�seek)�self�name�mode�closefdrr�args�kwargs��	__class__��7/usr/lib/python3/dist-packages/duplicity/filechunkio.pyrs
"zFileChunkIO.__init__cs`|tkrtt|��|j|�dS|tkr |�|��|�dS|tkr.|�|j|�dSdS)z/
        Move to a new chunk position.
        N)	rrrrrr�tellrr)rr�whencerrrr&s�zFileChunkIO.seekcstt|���|jS)z(
        Current file position.
        )rrrr�rrrrr1�zFileChunkIO.tell���cs:|dkr|j|��}t||g�}tt|��|�S|��S)z2
        Read and return at most n bytes.
        r)rr�minrr�read�readall)r�n�max_nrrrr#7s
zFileChunkIO.readcCs|�|j|���S)z/
        Read all data from the chunk.
        )r#rrrrrrr$Br zFileChunkIO.readallc
Cs||�t|��}t|�}z	||d|�<W|Sty=}zddl}t||j�s(|�|�d|�|d|�<WYd}~|Sd}~ww)z/
        Same as RawIOBase.readinto().
        Nr�b)r#�len�	TypeError�array�
isinstance)r�b�datar%�errr*rrr�readintoHs���zFileChunkIO.readinto)rTrN)r!)�__name__�
__module__�__qualname__�__doc__rrrrr#r$r/�
__classcell__rrrrrsr)�ior
�getattrrrr�FileIOrrrrr�<module>s

https://t.me/RX1948 - 2025