
    d                         d Z ddlZddlZddlmZ ddZddZ G d dej                  Z G d	 d
ej                  Z G d dej	                  Z	 G d deej
                  Z
 G d deej                  Zd ZdS )zQCodec for quoted-printable encoding.

This codec de/encodes from bytes to bytes.
    N)BytesIOstrictc                     |dk    sJ t          |           }t                      }t          j        ||d           |                                t	          |           fS )Nr   T)	quotetabs)r   quopriencodegetvalueleninputerrorsfgs       (  /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/encodings/quopri_codec.pyquopri_encoder   
   sW    XA		A
M!Q$''''JJLL#e**%%    c                     |dk    sJ t          |           }t                      }t          j        ||           |                                t	          |           fS )Nr   )r   r   decoder	   r
   r   s       r   quopri_decoder      sR    XA		A
M!QJJLL#e**%%r   c                       e Zd ZddZddZdS )Codecr   c                 "    t          ||          S N)r   selfr   r   s      r   r   zCodec.encode       UF+++r   c                 "    t          ||          S r   )r   r   s      r   r   zCodec.decode   r   r   Nr   )__name__
__module____qualname__r   r    r   r   r   r      s<        , , , ,, , , , , ,r   r   c                       e Zd ZddZdS )IncrementalEncoderFc                 8    t          || j                  d         S Nr   )r   r   r   r   finals      r   r   zIncrementalEncoder.encode       UDK0033r   NF)r   r    r!   r   r"   r   r   r$   r$      (        4 4 4 4 4 4r   r$   c                       e Zd ZddZdS )IncrementalDecoderFc                 8    t          || j                  d         S r&   )r   r   r'   s      r   r   zIncrementalDecoder.decode#   r)   r   Nr*   )r   r    r!   r   r"   r   r   r-   r-   "   r+   r   r-   c                       e Zd ZeZdS )StreamWriterNr   r    r!   bytescharbuffertyper"   r   r   r0   r0   &           NNNr   r0   c                       e Zd ZeZdS )StreamReaderNr1   r"   r   r   r6   r6   )   r4   r   r6   c            
      v    t          j        dt          t          t          t
          t          t          d          S )Nr   F)namer   r   incrementalencoderincrementaldecoderstreamwriterstreamreader_is_text_encoding)codecs	CodecInfor   r   r$   r-   r0   r6   r"   r   r   getregentryr@   .   s4    --!!	 	 	 	r   r   )__doc__r>   r   ior   r   r   r   r$   r-   r0   r6   r@   r"   r   r   <module>rC      sZ   
        & & & && & & &, , , , ,FL , , ,4 4 4 4 42 4 4 44 4 4 4 42 4 4 4    5&-       5&-   

 
 
 
 
r   