• File: uu_codec.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/encodings/__pycache__/uu_codec.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.85 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~d#@sddlZddlZddlmZdddZddd	ZGd
ddejZGdd
d
ejZGdddejZGdddeej	Z	Gdddeej
Z
ddZdS)N)BytesIOstrict<data>c	Cst|}t}|j}|j}|dd}|dd}|d|d@|fd|d}x|rr|t||d}qVW|d	|t|fS)
N
z\n
z\rzbegin %o %s
iascii-s 
end
)	rreadwritereplaceencodebinasciiZb2a_uugetvaluelen)	inputerrorsfilenamemodeinfileoutfiler
rchunkr7/opt/alt/python37/lib64/python3.7/encodings/uu_codec.py	uu_encodesrc

Cst|}t}|j}|j}x(|}|s.td|dddkrPqWx|}|rX|dkrZPyt|}WnRtjk
r}z2|ddd@ddd	}	t|d|	}Wdd}~XYnX||qFW|std
|t|fS)Nz"Missing "begin" line in input datasbeginsend
r ?zTruncated input data)	rreadliner
ValueErrorrZa2b_uuErrorrr)
rrrrr rsdatavnbytesrrr	uu_decode%s.$r'c@s eZdZdddZdddZdS)	CodecrcCs
t||S)N)r)selfrrrrrr
GszCodec.encodecCs
t||S)N)r')r)rrrrrdecodeJszCodec.decodeN)r)r)__name__
__module____qualname__r
r*rrrrr(Fs
r(c@seZdZdddZdS)IncrementalEncoderFcCst||jdS)Nr)rr)r)rfinalrrrr
NszIncrementalEncoder.encodeN)F)r+r,r-r
rrrrr.Msr.c@seZdZdddZdS)IncrementalDecoderFcCst||jdS)Nr)r'r)r)rr/rrrr*RszIncrementalDecoder.decodeN)F)r+r,r-r*rrrrr0Qsr0c@seZdZeZdS)StreamWriterN)r+r,r-bytescharbuffertyperrrrr1Usr1c@seZdZeZdS)StreamReaderN)r+r,r-r2r3rrrrr4Xsr4c
CstjdttttttddS)NuuF)namer
r*incrementalencoderincrementaldecoderstreamreaderstreamwriter_is_text_encoding)codecs	CodecInforr'r.r0r4r1rrrrgetregentry]sr>)rrr)r)r<riorrr'r(r.r0r1r4r>rrrr<module>
s

!