
    -hh                        S r SSKrSSKrSS jrSS jr " S S\R
                  5      r " S S\R                  5      r " S	 S
\R                  5      r " S S\\R                  5      r " S S\\R                  5      r	S r
g)zPython 'hex_codec' Codec - 2-digit hex content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
    Nc                 D    [         R                  " U 5      [        U 5      4$ N)binasciib2a_hexleninputerrorss     </opt/python-3.13.8/usr/lib/python3.13/encodings/hex_codec.py
hex_encoder          U#SZ00    c                 D    [         R                  " U 5      [        U 5      4$ r   )r   a2b_hexr   r   s     r   
hex_decoder      r   r   c                   (    \ rS rSrSS jrSS jrSrg)Codec   c                     [        X5      $ r   )r   selfr	   r
   s      r   encodeCodec.encode       %((r   c                     [        X5      $ r   )r   r   s      r   decodeCodec.decode   r   r    Nstrict)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r   r      s    ))r   r   c                       \ rS rSrSS jrSrg)IncrementalEncoder   c                 .    [         R                  " U5      $ r   )r   r   r   r	   finals      r   r   IncrementalEncoder.encode       &&r   r   NF)r!   r"   r#   r$   r   r%   r   r   r   r'   r'          'r   r'   c                       \ rS rSrSS jrSrg)IncrementalDecoder    c                 .    [         R                  " U5      $ r   )r   r   r*   s      r   r   IncrementalDecoder.decode!   r-   r   r   Nr.   )r!   r"   r#   r$   r   r%   r   r   r   r1   r1       r/   r   r1   c                       \ rS rSr\rSrg)StreamWriter%   r   Nr!   r"   r#   r$   bytescharbuffertyper%   r   r   r   r6   r6   %       Nr   r6   c                       \ rS rSr\rSrg)StreamReader(   r   Nr8   r   r   r   r=   r=   (   r;   r   r=   c                  h    [         R                  " S[        [        [        [
        [        [        SS9$ )NhexF)namer   r   incrementalencoderincrementaldecoderstreamwriterstreamreader_is_text_encoding)codecs	CodecInfor   r   r'   r1   r6   r=   r   r   r   getregentryrI   -   s-    --!!	 	r   r   )__doc__rG   r   r   r   r   r'   r1   r6   r=   rI   r   r   r   <module>rK      s}     11)FLL )'22 '
'22 '
5&-- 5&-- 

r   