\ddZddlmZmZddlZeZddZGddejZGdd ejZGd d ej Z Gd d ej Z dZ dS)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_decodeNstrictc$t||dS)NT)r)inputerrorss ..\python\lib\encodings\mbcs.pydecoder s ufd + ++ceZdZddZdS)IncrementalEncoderFc8t||jdS)Nr)rr)selfrfinals r encodezIncrementalEncoder.encodes5$+..q11r N)F)__name__ __module__ __qualname__rr r r r s(222222r r ceZdZeZdS)IncrementalDecoderN)rrrr_buffer_decoderr r rrs NNNr rceZdZeZdS) StreamWriterN)rrrrrrr r rr FFFr rceZdZeZdS) StreamReaderN)rrrrr rr r rr!rr rc ttjdtttt t tS)Nmbcs)namerr incrementalencoderincrementaldecoder streamreader streamwriter)codecs CodecInforr r rrrrr r getregentryr'&s1   --!!   r )r) __doc__r%rrrr r BufferedIncrementalDecoderrrrr'rr r r*s,+++++++  ,,,,222222222!!!!!:!!!6&6&     r