U e5d$@svdZddlZGdddejZGdddejZGdddejZGd d d eejZGd d d eejZd dZdS)a Generic Python Character Mapping Codec. Use this codec directly rather than through the automatic conversion mechanisms supplied by unicode() and .encode(). Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. Nc@seZdZejZejZdS)CodecN)__name__ __module__ __qualname__codecscharmap_encodeencodecharmap_decodedecoder r )/usr/lib64/python3.8/encodings/charmap.pyrsrc@s eZdZdddZd ddZdS) IncrementalEncoderstrictNcCstj||||_dSN)rr __init__mappingselferrorsrr r r rszIncrementalEncoder.__init__FcCst||j|jdSNr)rrrrrinputfinalr r r rszIncrementalEncoder.encode)rN)Frrrrrr r r r r s r c@s eZdZdddZd ddZdS) IncrementalDecoderrNcCstj||||_dSr)rrrrrr r r r!szIncrementalDecoder.__init__FcCst||j|jdSr)rr rrrr r r r %szIncrementalDecoder.decode)rN)Frrrrr r r r r r s rc@s eZdZdddZdddZdS) StreamWriterrNcCstj|||||_dSr)rrrrrstreamrrr r r r*szStreamWriter.__init__cCst|||jSr)rrrrrrr r r r.szStreamWriter.encode)rN)rrr r r r r(s rc@s eZdZdddZdddZdS) StreamReaderrNcCstj|||||_dSr)rr rrrr r r r3szStreamReader.__init__cCst|||jSr)rr rrr r r r 7szStreamReader.decode)rN)rrr r r r r 1s r c CstjdtjtjttttdS)Ncharmap)namerr incrementalencoderincrementaldecoder streamwriter streamreader) r CodecInforrr r rrr r r r r getregentry<sr()__doc__rrr rrr r(r r r r s