AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/encodings/__pycache__/ |
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/encodings/__pycache__/quopri_codec.cpython-39.pyc |
a R�f� � @ s� d Z ddlZddlZddlmZ ddd�Zddd�ZG d d � d ej�ZG dd� dej�ZG d d� dej �Z G dd� deej �Z G dd� deej�Zdd� ZdS )zQCodec for quoted-printable encoding. This codec de/encodes from bytes to bytes. � N)�BytesIO�strictc C s: |dksJ �t | �}t � }tj||dd� |�� t| �fS )Nr T)Z quotetabs)r �quopri�encode�getvalue�len��input�errors�f�g� r �;/opt/alt/python39/lib64/python3.9/encodings/quopri_codec.py� quopri_encode s r c C s6 |dksJ �t | �}t � }t�||� |�� t| �fS )Nr )r r �decoder r r r r r � quopri_decode s r c @ s e Zd Zddd�Zddd�ZdS ) �Codecr c C s t ||�S �N)r ��selfr r r r r r s zCodec.encodec C s t ||�S r )r r r r r r 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 t || j�d S �Nr )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 t || j�d S r )r r r r r r r # s zIncrementalDecoder.decodeN)F)r r r r r r r r r "