î
\á[\»  ã               @   s±   d  Z  d d l m Z m Z d d l Z e 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)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.4/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)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r
      s   r
   c               @   s   e  Z d  Z e Z d S)ÚIncrementalDecoderN)r   r   r   r   Ú_buffer_decoder   r   r   r   r      s   r   c               @   s   e  Z d  Z e Z d S)ÚStreamWriterN)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e  Z d  Z e Z d S)ÚStreamReaderN)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ÚnameÚmbcsr   r	   ÚincrementalencoderÚincrementaldecoderÚstreamreaderÚstreamwriter)ÚcodecsÚ	CodecInfor   r	   r
   r   r   r   r   r   r   r   Úgetregentry&   s    	r   )Ú__doc__r   r   r   r   r	   r
   ÚBufferedIncrementalDecoderr   r   r   r   r   r   r   r   Ú<module>	   s   