| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python310/lib64/python3.10/encodings/__pycache__/ |
Upload File : |
o
�=?h� � @ 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 � t �| �t| �fS �N)�bz2�compress�len��input�errors� r �:/opt/alt/python310/lib64/python3.10/encodings/bz2_codec.py�
bz2_encode � r
c C r r )r �
decompressr r r r r �
bz2_decode r r c @ s e Zd Zddd�Zddd�ZdS )�Codecr c C �
t ||�S r )r
��selfr r
r r r �encode �
zCodec.encodec C r r )r r r r r �decode r zCodec.decodeN�r )�__name__�
__module__�__qualname__r r r r r r r s
r c @ �( e Zd Zd
dd�Zddd�Zdd� Zd S )�IncrementalEncoderr c C � || _ t�� | _d S r )r
r �
BZ2Compressor�compressobj�r r
r r r �__init__ � zIncrementalEncoder.__init__Fc C s* |r| j �|�}|| j �� S | j �|�S r )r r �flush)r r �final�cr r r r # s zIncrementalEncoder.encodec C � t �� | _d S r )r r r �r r r r �reset* � zIncrementalEncoder.resetNr �F)r r r r"