B K|ٙUl7@s dZddlZGdddejZGdddejZGdddejZGd d d eejZGd d d eejZd dZee dZ e ddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;dd?d@dAdBdCdD4dEdFZ e dGkrddlZe ejejdS)Hz Python Character Mapping Codec for ROT13. This codec de/encodes from str to str. Written by Marc-Andre Lemburg (mal@lemburg.com). Nc@s eZdZdddZdddZdS) CodecstrictcCst|tt|fS)N)str translate rot13_maplen)selfinputerrorsr 3/opt/alt/python37/lib/python3.7/encodings/rot_13.pyencodesz Codec.encodecCst|tt|fS)N)rrrr)rr r r r r decodesz Codec.decodeN)r)r)__name__ __module__ __qualname__r rr r r r r s rc@seZdZdddZdS)IncrementalEncoderFcCs t|tS)N)rrr)rr finalr r r r szIncrementalEncoder.encodeN)F)rrrr r r r r rsrc@seZdZdddZdS)IncrementalDecoderFcCs t|tS)N)rrr)rr rr r r rszIncrementalDecoder.decodeN)F)rrrrr r r r rsrc@s eZdZdS) StreamWriterN)rrrr r r r rsrc@s eZdZdS) StreamReaderN)rrrr r r r rsrc Cs"tjdtjtjttttddS)Nzrot-13F)namer rincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding) codecs CodecInforr rrrrrr r r r getregentry$srNOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm)4r.r/r0r1r2r3r4r5r6r7r8r9r:r!r"r#r$r%r&r'r(r)r*r+r,r-rHrIrJrKrLrMrNrOrPrQrRrSrTr;r<r=r>r?r@rArBrCrDrErFrGcCs|t|ddS)Nzrot-13)writerr read)ZinfileZoutfiler r r rot13lsrW__main__)__doc__rrrrrrrmake_identity_dictrangerupdaterWrsysstdinstdoutr r r r s