관리-도구
편집 파일: quopri_codec.cpython-35.pyc
��Yf� � @ s� d Z d d l Z d d l Z d d l m Z d d d � Z d d d � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e e j � Z Gd d � d e e j � Z d d � Z d S)zQCodec for quoted-printable encoding. This codec de/encodes from bytes to bytes. � N)�BytesIO�strictc C sS | d k s t � t | � } t � } t j | | d d �| j � t | � f S)Nr Z quotetabsT)�AssertionErrorr �quopri�encode�getvalue�len)�input�errors�f�g� r �;/opt/alt/python35/lib64/python3.5/encodings/quopri_codec.py� quopri_encode s r c C sM | d k s t � t | � } t � } t j | | � | j � t | � f S)Nr )r r r �decoder r )r r r r r r r � quopri_decode s r c @ s. e Z d Z d d d � Z d d d � Z d S)�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)�__name__� __module__�__qualname__r r r r r r r s r c @ s e Z d Z d d d � Z d S)�IncrementalEncoderFc C s t | | j � d S)Nr )r r )r r �finalr r r r s zIncrementalEncoder.encodeN)r r r r r r r r r s r c @ s e Z d Z d d d � Z d S)�IncrementalDecoderFc C s t | | j � d S)Nr )r r )r r r r r r r # s zIncrementalDecoder.decodeN)r r r r r r r r r "