o
    éT•j²  ã                   @   sp   d Z ddlZejZddd„ZG dd„ dejƒZG dd	„ d	ejƒZG d
d„ dejƒZG d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  | |d¡S )NT)ÚcodecsÚutf_7_decode)ÚinputÚerrors© r   ú&/usr/lib/python3.10/encodings/utf_7.pyÚdecode   s   r	   c                   @   s   e Zd Zddd„ZdS )ÚIncrementalEncoderFc                 C   s   t  || j¡d S )Nr   )r   Úutf_7_encoder   )Úselfr   Úfinalr   r   r   Úencode   s   zIncrementalEncoder.encodeN)F)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r
      s    r
   c                   @   ó   e Zd ZejZdS )ÚIncrementalDecoderN)r   r   r   r   r   Ú_buffer_decoder   r   r   r   r      ó    
r   c                   @   r   )ÚStreamWriterN)r   r   r   r   r   r   r   r   r   r   r      r   r   c                   @   r   )ÚStreamReaderN)r   r   r   r   r   r	   r   r   r   r   r      r   r   c                	   C   s   t jdttttttd�S )Nzutf-7)Únamer   r	   ÚincrementalencoderÚincrementaldecoderÚstreamreaderÚstreamwriter)r   Ú	CodecInfor   r	   r
   r   r   r   r   r   r   r   Úgetregentry   s   ùr   )r   )Ú__doc__r   r   r   r	   r
   ÚBufferedIncrementalDecoderr   r   r   r   r   r   r   r   Ú<module>   s    
