HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/root/usr/local/lib/python3.9/site-packages/kombu/__pycache__/compression.cpython-39.pyc
a

X>h��@spdZddlmZddlZddlmZiZiZiZdZ	d%dd�Z
dd	�Zd
d�Zdd
�Z
dd�Zdd�Ze
ejejdddgd�zddlZWney�Yn0e
ejejdddgd�zddlZWney�Yn0e
ejejddgd�zddlZWne�yYn0e
ejejdddgd�zddlZWne�yFYn&0dd�Zd d!�Ze
eed"d#d$gd�dS)&zCompression utilities.�)�annotationsN)�ensure_bytes)�register�encoders�get_encoder�get_decoder�compress�
decompresscs0|t�<|t�<|r,t��fdd�|D��dS)a�Register new compression method.

    Arguments:
    ---------
        encoder (Callable): Function used to compress text.
        decoder (Callable): Function used to decompress previously
            compressed text.
        content_type (str): The mime type this compression method
            identifies as.
        aliases (Sequence[str]): A list of names to associate with
            this compression method.
    c3s|]}|�fVqdS�N�)�.0�alias��content_typer�;/usr/local/lib/python3.9/site-packages/kombu/compression.py�	<genexpr>!�zregister.<locals>.<genexpr>N)�	_encoders�	_decoders�_aliases�update)�encoder�decoderr�aliasesrrrrs
rcCstt�S)z/Return a list of available compression methods.)�listrrrrrr$srcCst�||�}t||fS)zGet encoder by alias name.)r�getr��trrrr)srcCstt�||�S)zGet decoder by alias name.)rrrrrrrr/srcCst|�\}}|t|��|fS)z�Compress text.

    Arguments:
    ---------
        body (AnyStr): The text to compress.
        content_type (str): mime-type of compression method to use.
    )rr)�bodyrrrrrr4srcCst|�|�S)z�Decompress compressed text.

    Arguments:
    ---------
        body (AnyStr): Previously compressed text to uncompress.
        content_type (str): mime-type of compression method used.
    )r)rrrrrr	@sr	zapplication/x-gzip�gzip�zlib)rzapplication/x-bz2�bzip2Zbzipzapplication/x-brotli�brotlizapplication/x-lzma�lzma�xzcCst��}|�|�Sr
)�zstdZZstdCompressorr)r�crrr�
zstd_compressosr'cCst��}|�|�Sr
)r%ZZstdDecompressorr	)r�drrr�zstd_decompressssr)zapplication/zstdr%�	zstandard)N)�__doc__�
__future__rr Zkombu.utils.encodingrrrr�__all__rrrrrr	�bz2�ImportErrorr"r#r*r%r'r)rrrr�<module>sf
�����