AlkantarClanX12
Current Path : /opt/alt/python38/lib64/python3.8/encodings/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/encodings/__pycache__/base64_codec.cpython-38.pyc |
U i�f� � @ 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 )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). � N�strictc C s |dkst �t�| �t| �fS �Nr )�AssertionError�base64�encodebytes�len��input�errors� r �;/opt/alt/python38/lib64/python3.8/encodings/base64_codec.py� base64_encode s r c C s |dkst �t�| �t| �fS r )r r �decodebytesr r r r r � base64_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 Zddd�ZdS )�IncrementalEncoderFc C s | j dkst�t�|�S r )r r r r �r r �finalr r r r s zIncrementalEncoder.encodeN)F)r r r r r r r r r s r c @ s e Zd Zddd�ZdS )�IncrementalDecoderFc C s | j dkst�t�|�S r )r r r r r r r r r ! s zIncrementalDecoder.decodeN)F)r r r r r r r r r s r c @ s e Zd ZeZdS )�StreamWriterN�r r r �bytes�charbuffertyper r r r r % s r c @ s e Zd ZeZdS )�StreamReaderNr r r r r r! ( s r! c C s t jdttttttdd�S )Nr F)�namer r �incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs� CodecInfor r r r r r! r r r r �getregentry- s �r* )r )r )�__doc__r( r r r r r r r r! r* r r r r �<module> s