python (3.12.0)
Αe$ H d dl Z d dlmZmZ ej d Zd dlZd dlZd dlZd dl Z dZ
dZ G d de j Z
ddZ G d d
e j Z G d de j Z G d
de j Zedk( r e j( yy) N) os_helperwarnings_helperuus7 The symbols on top of your keyboard are !@#$%^&*()_+|~
sO M5&AE('-Y;6)O;',@;VX@=&]P(&]F('EO=7(@:V5Y8F]A<F0@87)E("% (R0E
*7B8J*"E?*WQ^"@ c , e Zd Z d fd Zd Z xZS )FakeIOc t t | t j ||| || _ || _ |r>t |t st | }| j | | j d y y )N)encodingerrorsnewliner )superr __init__ioBytesIO _encoding_errors
isinstancestrwriteseek)self
initial_valuer r
r __class__s @/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_uu.pyr
zFakeIO.__init__ sk
fd$RZZ\.6,2-4 % 6 "mS1 #M 2
JJ}%IIaL c | j | j j j | j | j
S N)flushbuffergetvaluedecoder r r s r r zFakeIO.getvalue- s3
{{##%,,T^^T\\JJr ) zutf-8strict
)__name__
__module____qualname__r
r
__classcell__)r s @r r r s 3:*.Kr r c |r-t d| |fz d t j dd z dz }|S t d| |fz d t z dz }|S )Nzbegin %03o %s
ascii `s
`
end
s
end
)bytesencodedtextreplace)modefilenamebacktickress r encodedtextwrappedr4 2 sn &$)997C""4./1>?
J &$)997C*+Jr c T e Zd Zd Zej
d Zd Zd Zd Z d Z
d Zy) UUTestc & t j t }t j }t j ||d | j |j
t dd t j t }t j }t j ||dd | j |j
t dd t j t }t j }t j ||dd | j |j
t ddd | j t 5 t j ||ddd d d d y # 1 sw Y y xY w)Nt1 Tr2 )
r r plaintextr encodeassertEqualr r4 assertRaises TypeError)r inpouts r test_encodezUUTest.test_encode= s jj#jjl
#sD!);E4)HIjj#jjl
#sD%();E4)HIjj#jjl
#sD4 0);E4)NO
y
) 3IIc3eT2 3 3 3s $FFc dD ] }t j t dd| }t j }t j || | j |j
t t j dt dd| z }t j }t j || | j |j
t y )N)TFr9 r8 r; sM UUencoded files may contain many lines,
even some that have 'begin' in them.
)r r r4 r r r>