î
\á[\²  ã               @   sž   d  Z  d d l Z e j 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 j	 ƒ Z	 d d „  Z
 d S)zF Python 'utf-7' Codec

Written by Brian Quinlan (brian@sweetapp.com).
é    NÚstrictc             C   s   t  j |  | d ƒ S)NT)ÚcodecsÚutf_7_decode)ÚinputÚerrors© r   ú%/usr/lib/python3.4/encodings/utf_7.pyÚdecode   s    r	   c               @   s   e  Z d  Z d d d „ Z d S)ÚIncrementalEncoderFc             C   s   t  j | |  j ƒ d S)Nr   )r   Úutf_7_encoder   )Úselfr   Úfinalr   r   r   Úencode   s    zIncrementalEncoder.encodeN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r
      s   r
   c               @   s   e  Z d  Z e j Z d S)ÚIncrementalDecoderN)r   r   r   r   r   Ú_buffer_decoder   r   r   r   r      s   r   c               @   s   e  Z d  Z e j Z d S)ÚStreamWriterN)r   r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e  Z d  Z e j Z d S)ÚStreamReaderN)r   r   r   r   r   r	   r   r   r   r   r      s   r   c               C   s4   t  j d d d t d t d t d t d t d t ƒ S)	NÚnamezutf-7r   r	   ÚincrementalencoderÚincrementaldecoderÚstreamreaderÚstreamwriter)r   Ú	CodecInfor   r	   r
   r   r   r   r   r   r   r   Úgetregentry   s    	r   )Ú__doc__r   r   r   r	   r
   ÚBufferedIncrementalDecoderr   r   r   r   r   r   r   r   Ú<module>   s   	