a
    äIþf	  ã                7   @   s   d Z ddlZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG d	d
„ d
eejƒZG dd„ deejƒZdd„ Ze e	dƒ¡Z
e
 ddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDœ4¡ dEdF„ ZedGkrddlZeejejƒ dS )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    e Zd Zddd„Zddd„ZdS )	ÚCodecÚstrictc                 C   s   t  |t¡t|ƒfS ©N©ÚstrÚ	translateÚ	rot13_mapÚlen©ÚselfÚinputÚerrors© r   ú!lib/python3.9/encodings/rot_13.pyÚencode   s    zCodec.encodec                 C   s   t  |t¡t|ƒfS r   r   r
   r   r   r   Údecode   s    zCodec.decodeN)r   )r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   
r   c                   @   s   e Zd Zddd„ZdS )ÚIncrementalEncoderFc                 C   s   t  |t¡S r   ©r   r   r   ©r   r   Úfinalr   r   r   r      s    zIncrementalEncoder.encodeN)F)r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd Zddd„ZdS )ÚIncrementalDecoderFc                 C   s   t  |t¡S r   r   r   r   r   r   r      s    zIncrementalDecoder.decodeN)F)r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )ÚStreamWriterN©r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )ÚStreamReaderNr   r   r   r   r   r      s   r   c                
   C   s"   t jdtƒ jtƒ jttttddS )Núrot-13F)Únamer   r   ÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreaderÚ_is_text_encoding)	ÚcodecsÚ	CodecInfor   r   r   r   r   r   r   r   r   r   r   Úgetregentry$   s    ør&   é   éN   éO   éP   éQ   éR   éS   éT   éU   éV   éW   éX   éY   éZ   éA   éB   éC   éD   éE   éF   éG   éH   éI   éJ   éK   éL   éM   én   éo   ép   éq   ér   és   ét   éu   év   éw   éx   éy   éz   éa   éb   éc   éd   ée   éf   ég   éh   éi   éj   ék   él   ém   )4r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   c                 C   s   |  t |  ¡ d¡¡ d S )Nr   )Úwriter$   r   Úread)ZinfileZoutfiler   r   r   Úrot13l   s    r^   Ú__main__)Ú__doc__r$   r   r   r   r   r   r&   Úmake_identity_dictÚranger   Úupdater^   r   ÚsysÚstdinÚstdoutr   r   r   r   Ú<module>   s„   Ì9
