o
    éT•j»  ã                   @   s~   d Z ddlmZmZ ddlZe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 )zØ Python 'mbcs' Codec for Windows


Cloned by Mark Hammond (mhammond@skippinet.com.au) from ascii.py,
which was written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

é    )Úmbcs_encodeÚmbcs_decodeNÚstrictc                 C   s   t | |dƒS )NT)r   )ÚinputÚerrors© r   ú%/usr/lib/python3.10/encodings/mbcs.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   r   )Ú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ZdS )ÚIncrementalDecoderN)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   c                   @   r   )ÚStreamReaderN)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 )NÚmbcs)Únamer   r	   ÚincrementalencoderÚincrementaldecoderÚstreamreaderÚstreamwriter)ÚcodecsÚ	CodecInfor   r	   r
   r   r   r   r   r   r   r   Úgetregentry&   s   ùr   )r   )Ú__doc__r   r   r   r   r	   r
   ÚBufferedIncrementalDecoderr   r   r   r   r   r   r   r   Ú<module>   s    
