+
    i#  c                   s   R t ^ RIt^ RIt^ RIHt RR ltRR lt ! R R]P                  4      t ! R R]P                  4      t ! R	 R
]P                  4      t	 ! R R]]P                  4      t
 ! R R]]P                  4      tR tR# )a  Python 'uu_codec' Codec - UU content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were
adapted from uu.py which was written by Lance Ellinghouse and
modified by Jack Jansen and Fredrik Lundh.
N)BytesIOc                 s   \        V 4      p\        4       pVP                  pVP                  pVP                  R R4      pVP                  RR4      pV! RVR,          V3,          P	                  R4      4       V! ^-4      pV'       d'   V! \
        P                  ! V4      4       V! ^-4      pK.  V! R4       VP                  4       \        V 4      3# )Z
z\nZz\rzbegin %o %s
i  Zasciis    
end
)	r    readwriteZreplaceencodebinasciiZb2a_uugetvaluelen)	inputerrorsZfilenameZmodeinfileoutfiler   r   Zchunks	   &&&&     +/usr/lib64/python3.14/encodings/uu_codec.py	uu_encoder      s    U^FiG;;DMME U+HU+H 
?dUlH55
=
=g
FGHE
hooe$%R	+E
++    c                 sP   \        V 4      p\        4       pVP                  pVP                  p V! 4       pV'       g   \        R4      hVR,          R8X  g   K+    T! 4       pT'       d   TR8X  d   M! \        P
                  ! T4      pT! T4       K9  T'       g   \        R4      hTP                  4       \        T 4      3#   \        P                   dP   pT^ ,          ^ ,
          ^?,          ^,          ^,           ^,          p	\        P
                  ! TRT	 4      p Rp?LRp?ii ; i)i   z"Missing "begin" line in input data:Ni   Ns   begins   end
NzTruncated input data)	r    readliner   Z
ValueErrorr   Za2b_uuZErrorr   r   )
r   r   r	   r
   r   r   ZsZdataZvZnbytess
   &&        r   	uu_decoder   %   s    U^FiGHMME JABBR5H JAM	/??1%D 	d/00E
++ ~~ 	/!R2~*Q.14F??1Wf:.D	/s   3C D%AD  D%c                   s4   a  ] tR t^Ft o RR ltRR ltRtV tR# )Codecc                    \        W4      # N)r   selfr   r      &&&r   r   ZCodec.encodeG       ''r   c                r   r   )r   r   r   r   decodeZCodec.decodeJ   r   r    Nstrict)__name__
__module____qualname____firstlineno__r   r   __static_attributes____classdictcell__Z__classdict__   @r   r   r   F   s     (( (r   r   c                   s*   a  ] tR t^Mt o RR ltRtV tR# )IncrementalEncoderc                :    \        WP                  4      ^ ,          # i    )r   r   r   r   Zfinalr   r   r   ZIncrementalEncoder.encodeN       ,Q//r   r   NF)r   r   r   r   r   r   r    r!   r"   r   r#   r#   M        0 0r   r#   c                   s*   a  ] tR t^Qt o RR ltRtV tR# )IncrementalDecoderc                r$   r%   )r   r   r&   r   r   r   ZIncrementalDecoder.decodeR   r'   r   r   Nr(   )r   r   r   r   r   r   r    r!   r"   r   r*   r*   Q   r)   r   r*   c                   s    ] tR t^Ut]tRtR# )StreamWriterr   Nr   r   r   r   ZbytesZcharbuffertyper   r   r   r   r+   r+   U       Nr   r+   c                   s    ] tR t^Xt]tRtR# )StreamReaderr   Nr,   r   r   r   r.   r.   X   r-   r   r.   c                  sn    \         P                  ! R \        \        \        \
        \        \        RR7      # )ZuuF)Znamer   r   ZincrementalencoderZincrementaldecoderZstreamreaderZstreamwriterZ_is_text_encoding)codecsZ	CodecInfor   r   r#   r*   r.   r+   r   r   r   getregentryr0   ]   s-    --!!	 	r   )r   z<data>i  r   )Z__doc__r/   r   Zior    r   r   r   r#   r*   r+   r.   r0   r   r   r   <module>r1      s      ,*,B(FLL (022 0022 05&-- 5&-- 

r   