Your IP : 18.222.182.226
3
\� � @ 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. t | �}t � }tj||dd� |j� t| �fS )NT)Z quotetabs)r �quopri�encode�getvalue�len)�input�errors�f�g� r �./usr/lib64/python3.6/encodings/quopri_codec.py�
quopri_encode
s r c C s* t | �}t � }tj||� |j� t| �fS )N)r r �decoder r )r r 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 )N)r )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 )Nr )r r )r r r r r r
r # s zIncrementalDecoder.decodeN)F)r r r r r r r r
r "