| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python38/lib64/python3.8/encodings/__pycache__/ |
Upload File : |
U
.��c� � @ s� d Z ddlZddlZddd�Zddd�ZG dd � d ej�ZG d
d� dej�ZG dd
� d
ej�ZG dd� deej�ZG dd� deej �Z dd� Z
dS )a Python 'bz2_codec' Codec - bz2 compression encoding.
This codec de/encodes from bytes to bytes and is therefore usable with
bytes.transform() and bytes.untransform().
Adapted by Raymond Hettinger from zlib_codec.py which was written
by Marc-Andre Lemburg (mal@lemburg.com).
� N�strictc C s |dkst �t�| �t| �fS �Nr )�AssertionError�bz2�compress�len��input�errors� r �8/opt/alt/python38/lib64/python3.8/encodings/bz2_codec.py�
bz2_encode s r
c C s |dkst �t�| �t| �fS r )r r �
decompressr r r r r �
bz2_decode s r c @ s e Zd Zddd�Zddd�ZdS ) �Codecr c C s
t ||�S �N)r
��selfr r
r r r �encode s zCodec.encodec C s
t ||�S r )r r r r r �decode s zCodec.decodeN)r )r )�__name__�
__module__�__qualname__r r r r r r r s
r c @ s( e Zd Zd
dd�Zddd�Zdd� Zd S )�IncrementalEncoderr c C s |dkst �|| _t�� | _d S r )r r
r �
BZ2Compressor�compressobj�r r
r r r �__init__ s zIncrementalEncoder.__init__Fc C s. |r| j �|�}|| j �� S | j �|�S d S r )r r �flush)r r �final�cr r r r # s zIncrementalEncoder.encodec C s t �� | _d S r )r r r �r r r r �reset* s zIncrementalEncoder.resetN)r )F)r r r r r r"