python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
uu.cpython-311.opt-1.pyc

edZddlZddlZddlZddlZejedgdZGddeZ	ddd	d
Z
ddZdZed
kredSdS)zImplementation of the UUencode and UUdecode functions.

encode(in_file, out_file [,name, mode], *, backtick=False)
decode(in_file [, out_file, mode, quiet])
N)
)remove)ErrorencodedecodeceZdZdS)rN)__name__
__module____qualname__6/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/uu.pyrr*sDrrFbacktickcrg}	|dkrtjj}nt|trs|t
j|}|+	tj|j	}n#t$rYnwxYwt|d}|||dkrtj
j}n:t|tr%t|d}|||d}|d}|dd}|dd	}|d
|dz|fzd|d
}t%|dkrQ|t'j|||d
}t%|dkQ|r|dn|d|D]}|dS#|D]}|wxYw)z
Uuencode file-Nrbwbi
z\n
z\rzbegin %o %s
iascii-rrs`
end
s 
end
)sysstdinbuffer
isinstancestrospathbasenamestatst_modeAttributeErroropenappendstdoutreplacewriterreadlenbinasciib2a_uuclose)in_fileout_filenamemoderopened_filesdatafs        rrr-sL
L1c>>i&GG

%
%		)|w''00|77++3DD%D7D))G(((s??z(HH
#
&
&	*Hd++H)))<D<D
||D''||D''
	D5L4*@@HHQQRRR||B$ii!mmNN8?4(CCCDDD<<##D$ii!mm	(NN;''''NN;'''		A
GGIIII				A
GGIIII	s1AHA/.H/
A<9H;A<<FHH6c0g}|dkrtjj}n:t|tr%t|d}||		|}|std|	ds<|
dd}t|dkr4|d	dkr(	t|d
dn#t$rYnwxYw||dd
d}t j|rtd||	t jsMdt j|vs<t jrC|	t jsdt j|vrtd|d|t|d
d}|dkrtjj}nQt|tr<t|d}t!j|||}|||}|r|d
dkr	t1j|}	ns#t0j$ra}
|d	dz
dzdzdzdz}t1j|d|}	|s"tjd|
zYd}
~
nd}
~
wwxYw||	|}|r|d
dk|std	|D]}|dS#|D]}|wxYw)zDecode uuencoded filerrTz'No valid begin line found in input filesbegin rrNs 	
rz Cannot overwrite existing file: z..zRefusing to write to z due to directory traversalrsend ?zWarning: %s
zTruncated input file)rrrrrr%r&readliner
startswithsplitr+int
ValueErrorrstriprrr existssepaltsepr'chmodstripr,a2b_uustderrr)r.)
r/r0r2quietr3hdr	hdrfieldsfpsr4vnbytesr5s
             rrrgs
L#~~)"	GS	!	!%w%%G$$$<	""$$C
GEFFF>>(++
		$**I9~~""y|x'?'?	!a(((!D	 |**<88??HHHw~~h''
KIxIIJJJ##BF++
[RV

))I*((33*&")%%11YHYYYZZZ<y|Q''Ds??z(HH
#
&
&	*h%%BHXt$$$H)))

	#AGGL))V33
:q))>
:
:
:aDGr>Q.2q8q&z22:J$$_q%8999
:
NN4     ""A
	#AGGL))V33	0.///	0		A
GGIIII				A
GGIIII	s^A1M:CM:
C,)M:+C,,FM:JM:L%AL<M:LAM::Ncddl}|d}|ddddd	d
|dd
ddd	d
|\}}t	|dkr)|dt
jdtjj	}tj
j	}t	|dkr|d}t	|dkr|d}|jrs|jrZt|trt|d}n4t!tjddt
jdt||dS|jrZt|trt|d}n4t!tjddt
jdt%||dS)zuuencode/uudecode main programrNz'usage: %prog [-d] [-t] [input [output]])usagez-dz--decoderzDecode (instead of encode)?F
store_true)desthelpdefaultactionz-tz--texttextz2data is text, encoded format unix-compatible text?r8zincorrect number of argumentsr9rz: cannot do -t to stdoutrz: cannot do -t from stdin)optparseOptionParser
add_option
parse_argsr+errorrexitrrr'rrZrrr%printargvr)r[parseroptionsargsinputoutputs      rtestrhsOOO

"
")R
"
S
SF
dJX<Ychq}~~~
dH68lv{EQRRR''))OWd
4yy1}}4555
IE
Z
F
4yy1}}Q
4yy1}}a~<	&#&&
fd++chqk#=>>>uf<	%%%
UD))chqk#>???ufr__main__)NN)NNF)
__doc__r,rrwarnings_deprecatedr
__all__	Exceptionrrrrhr
rr<module>ros6				



Xg....
'
'
'					I			777777tHHHHT$$$LzDFFFFFr