<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
î
j fÉ  ã               @   sÏ   d  Z  d d l Z d d l Z d d d „ Z d d d „ Z Gd d	 „  d	 e j ƒ Z Gd
 d „  d e j ƒ Z Gd d „  d e j ƒ Z Gd d „  d e e j ƒ Z Gd d „  d e e j	 ƒ Z	 d d „  Z
 d S)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   t  j |  ƒ t |  ƒ f S)N)Úbz2ÚcompressÚlen)ÚinputÚerrors© r   ú8/opt/alt/python34/lib64/python3.4/encodings/bz2_codec.pyÚ
bz2_encode   s    r
   c             C   s   t  j |  ƒ t |  ƒ f S)N)r   Ú
decompressr   )r   r   r   r   r	   Ú
bz2_decode   s    r   c               @   s.   e  Z d  Z d d d „ Z d d d „ Z d S)ÚCodecr   c             C   s   t  | | ƒ S)N)r
   )Úselfr   r   r   r   r	   Úencode   s    zCodec.encodec             C   s   t  | | ƒ S)N)r   )r   r   r   r   r   r	   Údecode   s    zCodec.decodeN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r	   r      s   r   c               @   s:   e  Z d  Z d d d „ Z d d d „ Z d d „  Z d	 S)
ÚIncrementalEncoderr   c             C   s   | |  _  t j ƒ  |  _ d  S)N)r   r   ÚBZ2CompressorÚcompressobj)r   r   r   r   r	   Ú__init__   s    	zIncrementalEncoder.__init__Fc             C   s=   | r) |  j  j | ƒ } | |  j  j ƒ  S|  j  j | ƒ Sd  S)N)r   r   Úflush)r   r   ÚfinalÚcr   r   r	   r   #   s    zIncrementalEncoder.encodec             C   s   t  j ƒ  |  _ d  S)N)r   r   r   )r   r   r   r	   Úreset*   s    zIncrementalEncoder.resetN)r   r   r   r   r   r   r   r   r   r	   r      s   r   c               @   s:   e  Z d  Z d d d „ Z d d d „ Z d d „  Z d	 S)
ÚIncrementalDecoderr   c             C   s   | |  _  t j ƒ  |  _ d  S)N)r   r   ÚBZ2DecompressorÚdecompressobj)r   r   r   r   r	   r   .   s    	zIncrementalDecoder.__init__Fc             C   s1   y |  j  j | ƒ SWn t k
 r, d SYn Xd  S)NÚ )r   r   ÚEOFError)r   r   r   r   r   r	   r   3   s    zIncrementalDecoder.decodec             C   s   t  j ƒ  |  _ d  S)N)r   r   r   )r   r   r   r	   r   9   s    zIncrementalDecoder.resetN)r   r   r   r   r   r   r   r   r   r	   r   -   s   r   c               @   s   e  Z d  Z e Z d S)ÚStreamWriterN)r   r   r   ÚbytesÚcharbuffertyper   r   r   r	   r!   <   s   r!   c               @   s   e  Z d  Z e Z d S)ÚStreamReaderN)r   r   r   r"   r#   r   r   r   r	   r$   ?   s   r$   c               C   s:   t  j d d d t d t d t d t d t d t d	 d
 ƒ S)NÚnamer   r   r   ÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreaderÚ_is_text_encodingF)ÚcodecsÚ	CodecInfor
   r   r   r   r!   r$   r   r   r   r	   ÚgetregentryD   s    	r-   )Ú__doc__r+   r   r
   r   r   r   r   r!   r$   r-   r   r   r   r	   Ú<module>   s   