
    F\h                        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                 T    US:X  d   e[         R                  " U 5      [        U 5      4$ Nstrict)binasciib2a_hexleninputerrorss     */usr/lib/python3.13/encodings/hex_codec.py
hex_encoder      *    XU#SZ00    c                 T    US:X  d   e[         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      $ N)r   selfr
   r   s      r   encodeCodec.encode       %((r   c                     [        X5      $ r   )r   r   s      r   decodeCodec.decode   r   r    Nr   )__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 R                   S:X  d   e[        R                  " U5      $ r   )r   r   r   r   r
   finals      r   r   IncrementalEncoder.encode   %    {{h&&&&&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 R                   S:X  d   e[        R                  " U5      $ r   )r   r   r   r+   s      r   r   IncrementalDecoder.decode!   r.   r   r    Nr/   )r"   r#   r$   r%   r   r&   r    r   r   r2   r2       r0   r   r2   c                       \ rS rSr\rSrg)StreamWriter%   r    Nr"   r#   r$   r%   bytescharbuffertyper&   r    r   r   r7   r7   %       Nr   r7   c                       \ rS rSr\rSrg)StreamReader(   r    Nr9   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(   r2   r7   r>   r    r   r   getregentryrJ   -   s-    --!!	 	r   r!   )__doc__rH   r   r   r   r   r(   r2   r7   r>   rJ   r    r   r   <module>rL      s}     11)FLL )'22 '
'22 '
5&-- 5&-- 

r   