
    Rh                         d Z ddlmZmZ ddlZeZddZ G d dej                        Z G d dej                        Z G d	 d
ej                        Z	 G d dej                        Z
d Zy)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_decodeNc                     t        | |d      S )NT)r   )inputerrorss     %/usr/lib/python3.12/encodings/mbcs.pydecoder	      s    ufd++    c                       e Zd ZddZy)IncrementalEncoderc                 4    t        || j                        d   S )Nr   )r   r   )selfr   finals      r   encodezIncrementalEncoder.encode   s    5$++.q11r
   N)F)__name__
__module____qualname__r    r
   r   r   r      s    2r
   r   c                       e Zd ZeZy)IncrementalDecoderN)r   r   r   r   _buffer_decoder   r
   r   r   r      s     Nr
   r   c                       e Zd ZeZy)StreamWriterN)r   r   r   r   r   r   r
   r   r   r          Fr
   r   c                       e Zd ZeZy)StreamReaderN)r   r   r   r   r	   r   r
   r   r   r   !   r   r
   r   c            	      j    t        j                  dt        t        t        t
        t        t              S )Nmbcs)namer   r	   incrementalencoderincrementaldecoderstreamreaderstreamwriter)codecs	CodecInfor   r	   r   r   r   r   r   r
   r   getregentryr&   &   s*    --!! r
   )strict)__doc__r$   r   r   r   r	   r   BufferedIncrementalDecoderr   r   r   r&   r   r
   r   <module>r*      sk    ,  
,222 2!:: !6&& 6&& 
	r
   