3 \ 6@s dZddlZGdddejZGdddejZGdddejZGd d d eejZGd d d eejZd dZeje dZ e j 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) CodecstrictcCs|jtt|fS)N) translate rot13_maplen)selfinputerrorsr (/usr/lib64/python3.6/encodings/rot_13.pyencodesz Codec.encodecCs|jtt|fS)N)rrr)rrr r r r decodesz Codec.decodeN)r)r)__name__ __module__ __qualname__r r r r r r r s rc@seZdZdddZdS)IncrementalEncoderFcCs |jtS)N)rr)rrfinalr r r r szIncrementalEncoder.encodeN)F)rrrr r r r r rsrc@seZdZdddZdS)IncrementalDecoderFcCs |jtS)N)rr)rrrr r r r szIncrementalDecoder.decodeN)F)rrrr r 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 r incrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding) codecs CodecInforr r rrrrr r r r getregentry$srNOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm)4r-r.r/r0r1r2r3r4r5r6r7r8r9r r!r"r#r$r%r&r'r(r)r*r+r,rGrHrIrJrKrLrMrNrOrPrQrRrSr:r;r<r=r>r?r@rArBrCrDrErFcCs|jtj|jddS)Nzrot-13)writerr read)ZinfileZoutfiler r r rot13lsrV__main__)__doc__rrrrrrrmake_identity_dictrangerupdaterVrsysstdinstdoutr r r r s