Your IP : 3.15.144.162


Current Path : /opt/alt/python312/lib64/python3.12/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/encodings/__pycache__/base64_codec.cpython-312.pyc

�

�Q�f����dZddlZddlZdd�Zdd�ZGd�dej
�ZGd�dej�ZGd	�d
ej�ZGd�deej�ZGd
�deej�Z	d�Z
y)z�Python 'base64_codec' Codec - base64 content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
�Nc�P�|dk(sJ�tj|�t|�fS�N�strict)�base64�encodebytes�len��input�errorss  �=/opt/alt/python312/lib64/python3.12/encodings/base64_codec.py�
base64_encoder

�*���X�������u�%�s�5�z�2�2�c�P�|dk(sJ�tj|�t|�fSr)r�decodebytesrr	s  r�
base64_decoderrrc��eZdZdd�Zdd�Zy)�Codecc��t||�S�N)r
��selfr
rs   r�encodezCodec.encode����U�F�+�+rc��t||�Sr)rrs   r�decodezCodec.decoderrN�r)�__name__�
__module__�__qualname__rr�rrrrs��,�,rrc��eZdZdd�Zy)�IncrementalEncoderc�N�|jdk(sJ�tj|�Sr)rrr�rr
�finals   rrzIncrementalEncoder.encode�%���{�{�h�&�&�&��!�!�%�(�(rN�F)rrr rr!rrr#r#���)rr#c��eZdZdd�Zy)�IncrementalDecoderc�N�|jdk(sJ�tj|�Sr)rrrr%s   rrzIncrementalDecoder.decode!r'rNr()rrr rr!rrr+r+ r)rr+c��eZdZeZy)�StreamWriterN�rrr �bytes�charbuffertyper!rrr.r.%����Nrr.c��eZdZeZy)�StreamReaderNr/r!rrr4r4(r2rr4c
�l�tjdtttt
ttd��S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInfor
rr#r+r.r4r!rr�getregentryr>-s-�����
���-�-�!�!��	�	rr)�__doc__r<rr
rrr#r+r.r4r>r!rr�<module>r@s}����
�3�3�,�F�L�L�,�)��2�2�)�
)��2�2�)�
�5�&�-�-���5�&�-�-��

r

?>