관리-도구
편집 파일: quopri_codec.cpython-310.pyc
o 6��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/python310/lib64/python3.10/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 � t ||�S �N)r ��selfr r r r r r � zCodec.encodec C r r )r r r r r r r zCodec.decodeN�r )�__name__� __module__�__qualname__r r r r r r r s r c @ � e Zd Zddd�ZdS )�IncrementalEncoderFc C � t || j�d S �Nr )r r �r r �finalr r r r � zIncrementalEncoder.encodeN�F)r r r r r r r r r � r c @ r )�IncrementalDecoderFc C r r )r r r r r r r # r"