python (3.12.0)

(root)/
lib/
python3.12/
idlelib/
__pycache__/
run.cpython-312.opt-2.pyc

̑eSL	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z
ddlZddlZddl
Z
ddl
mZddl
mZddl
mZddl
mZddl
mZddl
mZddl
mZddlZddlZeej0d	d
s4dD]Zeeeej0dez=d
ej0d	_dZ	dZee_ee_d3dZ!	d4dZ"da#dZ$e$dejJZ&e&fdZ'd
a(d
a)d
a*d5dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZdZ2dZ3dZ4d Z5d!Z6Gd"d#ejnZ8Gd$d%ejrZ:Gd&d'e:Z;Gd(d)e:Z<Gd*d+ejzZ>Gd,d-Z?e@d.k(rdd/lAm+Z+e+d0d12e$d
y#e $rYwxYw)6N)autocomplete)calltip)
debugger_r)
debugobj_r)iomenu)rpc)stackviewerzidlelib.runfirstrun)simpledialog
messageboxfontdialog
filedialogcommondialogttkztkinter.Fz	127.0.0.1zCtrl-D (end-of-file)c	d}|d|d|dz
}|tj||}|j}|r|d|zz
}||jd|dz
}|S)Nz!
Warning (from warnings module):
z  File "z", line 
z    %s
: )	linecachegetlinestrip__name__)messagecategoryfilenamelinenoliness      ?/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/run.pyidle_formatwarningr 3sz'-A9XJixr	22A|  62::<D	Z$
Hb		,,AHc		|tj}	|jt|||||y#t$rYywxYwN)sysstderrwriter OSError)rrrrfilers      ridle_showwarning_subprocr)@sM|zz


%8VT;	<

s4	AAc	|r't tjatt_yyttt_dayyr#)_warnings_showwarningwarningsshowwarningr))captures rcapture_warningsr/PsDL ($,$8$8!#;H )!,#8H $(!-r!Tc(	|jdy)Nupdate)eval)tcls rhandle_tk_eventsr4`sHHXr!c	|a	ttjd}t
ddgtjddtjtdt|ffdj		tr	t	tj j#dd	}|r3|\}\}}}||i|}tj(j+||fn
t-t#t	dtj
YyxYw#t$rYwxYw#t$j&$rd}YwxYw#t$rt.rdaYt0$r
t
d
tj2\}}	}
	t5tj(j+dfY0#t7j4||	|
tj
tYnxYwYxYw)Nz/IDLE Subprocess: no IP port passed in sys.argv.r(T
SockThread)targetnameargsdaemon皙?)blocktimeoutF)no_exitfuncintr$argvprint
__stderr__r/	threadingThread
manage_socket	LOCALHOSTstartexit_nowexitKeyboardInterruptr
request_queuegetqueueEmptyresponse_queueputr4quitting
SystemExitexc_infoprint_exception	traceback)del_exitfuncportrequestseqmethodr<kwargsrettypevaluetbs           rmainrcns(K388B< T$CHHQK
M&%t,. eg
$	F
++//dD/I
.5++fdFd-f-""&&Sz2 "'
?>>	#)
;;

!		U#
	!llnOD%
!""&&T{3
))$rOsqC'4D3;
D	!D'?D3'D		DD3DD3D0-D3/D00D33G-G4+F""3GGcrtdD])}tj|	t|t}n+t
dtjt|day|jy#t
$r:}t
d|jdzdztj|}Yd}~d}~wwxYw)NzIDLE Subprocess: OSError: z, retrying....r7z8IDLE Subprocess: Connection to IDLE GUI failed, exiting.T)
rangetimesleepMyRPCServer	MyHandlerr'rDr<r$rEshow_socket_errorrKhandle_request)addressiservererrsocket_errors     rrHrHs
1X

1
	 )4F		*03	@,0
	.!<"#),
9L	sA33	B6<0B11B6c	ddl}ddlm}|j}t	||j|dd|dd|dd|jd|jd		|
|jy)Nr)	showerrorzSubprocess Connection Errorz#IDLE's subprocess can't connect to :rfz.
Fatal OSError #rzz.
See the 'Startup failure' section of the IDLE doc, online at
https://docs.python.org/3/library/idle.html#startup-failure)parent)	tkintertkinter.messageboxrtTkfix_scalingwithdrawerrnostrerrordestroy)rqrnrwrtroots     rrlrls~.,7::<DMMO
)1'!*QwqzlK!ii[3<<.9J
J
	LLNr!cB	|ttfvrotj}t	j
|5t
j|||ddd|jjdddzgStj||S#1swYExYw)Nr)AttributeError	NameErrorioStringIO
contextlibredirect_stderrr$__excepthook__getvaluesplitrXformat_exception_only)typexcrbrqs    rget_message_linesrs2
~y))kkm

'
'
,	-sC,	-$$T*2.566..sC88		-	-sBBc*ddl}|jttjtj
x\}}}}|\t_t_t_|t_	tfd|||y)Nrc>jt||j}|j}|8t|vr+
t	|||j
t
d	nE|C|js7t|vr*
t	|||j
t
d	|rGtj|}t
d	d}t||tj|	t|||}|D]}t
|d	y)NzF
The above exception was the direct cause of the following exception:
r7zE
During handling of the above exception, another exception occurred:
z"Traceback (most recent call last):)zrun.pyzrpc.pyzthreading.pyzqueue.pyz
debugger_r.pyzbdb.pyr8)endr()
addid__context__	__cause__r`
__traceback__rD__suppress_context__rX
extract_tbcleanup_traceback
print_listr)rrrbcontextcausetbeexcludelinesrefile	print_excseens         rrz"print_exception.<locals>.print_excsC//

E$!6d5k5%*=*=>28=
?!**k%d7mWg.C.CD28=
?
&&r*C6UC2Gc7+  51!#sB/	,D$BU+	,r!)r
checkcacheflush_stdoutr$r%rV	last_type
last_valuelast_tracebacklast_excset)rrvalrbexcinforrrs     @@@rrWrWslINJJE \\^+LCb78?5CM3>3#5CL5D,2c3r!c	|dd}|r'|D]}|ddj|snn|d=|r'|r'|D]}|ddj|snn|d=|r't|dk(r#|dd|ddtdtjt
jdj}tt|D]E}||\}}}}	|dk(rd}|	s'|jdr|jd	d
||fi}	||||	f||<Gy)Nrr6z** IDLE Internal Exception: r7exec?z
-toplevel-z	<pyshell#rr)countlenrDr$r%robjecttable
rpchandlerrg
startswith
remotecall)
rbrorig_tbrpcfilerrofnlnnmrs
          rrrs3GeG
	G!uQx~~g&	
qE


	G"vayw'	
rF

2w!|
1
,3::>(33J
3r7^!a5BD
9B

k2((i/12h<DBD 1!r!cyr#rr!rrr0s!r!cz	trddl}|jtdt	j
dy)NrF)rAatexit_clearr/r$rL)rs rrLrL3s+

UHHQKr!c*	ddl}t|jjdd}|dkDrd|jj|D]E}|jj
||d}t|d}|dks5td|z|d<Gyy)	Nrtkscalinggffffff?T)rr;existssizeg)	tkinter.fontfloatrcallr
namesFontrBround)rrwrr;r
rs      rrzrzBs(DGGLLy12G}LL&&t,	1D<<$$$T$$GDtF|$Dax$U4Z0V		1r!c|j|jdznd}|tjtj|z|_y)Nz

r8)__doc__textwrapfilldedent)funtexttems   rfixdocrNs9$'KK$;3;;C

hood&;<<CKr!c	tjtjfdt	dt
dtjtjfdt	dt
dt
dtjtjt
zt_t_y)Nc|rtd	|\}|dkDstdj|tzS#t$rtdt|dwxYw)Nz.setrecursionlimit() takes no keyword argumentsz0setrecursionlimit() takes exactly one argument (z given)rz/recursion limit must be greater or equal than 1)	TypeError
ValueErrorr__wrapped__RECURSIONLIMIT_DELTA)r<r^limitsetrecursionlimits   rrz:install_recursionlimit_wrappers.<locals>.setrecursionlimitXs@B
B	=FEqyAC
C!,,U5I-IJJ	=)),T7<=
=	=s	<"Az#            This IDLE wrapper adds z7 to prevent possible
            uninterruptible loops.c2jtz
Sr#)rr)getrecursionlimitsrrz:install_recursionlimit_wrappers.<locals>.getrecursionlimitms ,,.1EEEr!z(            This IDLE wrapper subtracts z# to compensate
            for the z" IDLE adds when setting the limit.)	functoolswrapsr$rrrr)rrs@@rinstall_recursionlimit_wrappersrTsC__S**+K,K #$$8#9:#&'__S**+F,F#))=(>?)**LPQ
#//14HHI-C-Cr!c^	ttjddrttjddrutjjt_tjjt_tjtjt
z
yyy)Nr)getattrr$rrrrrr!r!uninstall_recursionlimit_wrappersr|s~
C))=$?C))=$? # 5 5 A A # 5 5 A Ac3358LLM	
@
@r!ceZdZdZy)rjc		#t$rt$rdatjYyt
j}ttjdddtjjd|d|d	|tjd|	ttjd
d|datjYyxYw)NTz
            z(----------------------------------------zU
            Unhandled exception in user code execution server!'
            Thread: z"
            IDLE Client Address: z
            Request: r7i)rr(a
            *** Unrecoverable, server exiting!

            Users should never see this message; it is likely transient.
            If this recurs, report this with a copy of the message
            and an explanation of how to make it repeat.
            )rUEOFErrorrKthreadinterrupt_mainr$rErDrrrFcurrent_threadr;rXrrT)selfr[client_addresserfs    rhandle_errorzMyRPCServer.handle_errors		$		$H!!#	$..C(//'

H--/4456""0!12[!
#


c4(//'
H
# #

$H!!#s(CB*CN)r
__module____qualname__rrr!rrjrjs!$r!rjcJeZdZddZedZedZedZdZy)	StdioFilec<||_||_||_||_yr#)shelltags	_encoding_errors)rrrencodingerrorss     r__init__zStdioFile.__init__s
	!r!c|jSr#)rrs rrzStdioFile.encodings~~r!c|jSr#)rrs rrzStdioFile.errorss||r!c d|jzS)Nz<%s>)rrs rr;zStdioFile.names		!!r!cyNTrrs risattyzStdioFile.isattyr!N)zutf-8strict)	rrrrpropertyrrr;rrr!rrrsH""r!rceZdZdZdZy)
StdOutputFilecyrrrs rwritablezStdOutputFile.writablerr!c|jrtdtj||j|j
j
|j|j
}|jj||jS)Nzwrite to closed file)
closedrstrencoderrdecoderr&r)rrs  rr&zStdOutputFile.writes_;;344JJq$--5<<T]]DKKXzz499--r!N)rrrrr&rr!rrrs.r!rc,eZdZdZdZddZddZdZy)StdInputFiler8cyrrrs rreadablezStdInputFile.readablerr!c|jrtd|d}n1t|ts!t	dt|jz|j}d|_|dkr@|jjx}r"||z
}|jjx}r"|St||kr1|jj}|sn||z
}t||kr1||d|_|d|}|S)Nread from closed filer6must be int, not r8r)r	r
isinstancerBrr`r_line_bufferrreadliner)rrresultrs    rreadzStdInputFile.reads;;455<DD#&/$t*2E2EEFF""!8**--//$/$**--//$/

f+$zz**,U$f+$!'tu
DET]F
r!cd|jrtd|d}n1t|ts!t	dt|jz|jxs|jj}|dkrt|}|jdd|}|dk\r|dz}||d|_|d|S)Nrr6rrrrf)r	rrrBrr`rrrrrfind)rrreols    rrzStdInputFile.readlines;;455<DD#&/$t*2E2EEFF  9DJJ$7$7$9!8t9Diia&!87D KET{r!c8|jjyr#)rclosers rrzStdInputFile.closes

r!N)r6)rrrrrrrrrr!rrrsL* r!rc$eZdZdZdZdZdZy)rkc	t|}|jd||jd|_t	|jdt
jt
jt_	t|jdt
jt
jt_t|jdt
jdt_tjt_ddl}|j |_tj|_t'|jd|_tj*j-|dd	
y)Nrconsolestdinstdoutr%backslashreplacerinterpr>)myseqwait)	Executiveregisterget_remote_proxyr rrrrr$r!rr"r%rdisplayhookpydoc
plainpagerpager_keep_stdinrr$
RPCHandlergetresponse)r	executiver+s   rhandlezMyHandler.handles"dO	

fi(,,Y7 w!'&--A	"4<<#)??FMMC
"4<<#)??4FH
//&&99')++H5""4t$"?r!c0	tjdy)N
)rhrirs rexithookzMyHandler.exithook"sH

2r!c2	datjyrrTrrrs rEOFhookzMyHandler.EOFhook&sOr!c2	datjyrr7rs rdecode_interrupthookzMyHandler.decode_interrupthook,s#r!N)rrrr2r5r8r:rr!rrkrks@4  r!rkc>eZdZdZdZdZdZdZdZdZ	d
d	Z
y)r'c||_tjdurHtj|_t
j|_tj|_yi|_y)NF)
ridlelibtesting__main____dict__localsrCalltiprAutoComplete)rrs  rrzExecutive.__init__5sH$??e#"++DK"??,DL , 9 9 ;DDKr!c>	d|_da	t||jda	t	y#dawxYw#t
$rq}|jr[|jd}t|tdtfs,tdt|ztjYd}~yYd}~yYd}~yd}~wtj|_tr
t!tj"tj$urt'nH	tj"|jn*#tj|_t'YnxYw|j(j*j-d}|r&|j(j.j1YyYyxYw)NTFrzSystemExit: r7z<<toggle-jit-stack-viewer>>)
user_exc_info
interruptablerrArrUr<rr`rBrDr
r$r%rVrTrL
excepthookrrWrr getvarr$open_remote_stack_viewer)rcodeeobjits     rruncodezExecutive.runcode>s1	!%D M
&T4;;' %
.
N/!&
	EvvVVAY!"tDz3&78.3r72DD9
	B!$D~~!3!33!&NND$6$67&),D&#%//))001NOC&&??As@	70747	FAB,,AFD#"F#%E
AFc:trtjyyr#)rFrrrs rinterrupt_the_serverzExecutive.interrupt_the_server_s!!#r!cBtj|j|Sr#)rstart_debuggerr)rgui_adap_oids  rstart_the_debuggerzExecutive.start_the_debuggercs((,GGr!c<	|jj|yr#)r
unregister)ridb_adap_oids  rstop_the_debuggerzExecutive.stop_the_debuggerfsN""<0r!c8|jj|Sr#)r	fetch_tip)rr;s  rget_the_calltipzExecutive.get_the_calltipjs||%%d++r!c:|jj||Sr#)rfetch_completions)rwhatmodes   rget_the_completion_listz!Executive.get_the_completion_listms  224>>r!Ncn|jr|j\}}}nyd}||jj|}|rE|jjddvr*|j
}|r|jjddvr*||_tj||}tj|S)Nr)rrun)rErr)tb_frame	f_globalstb_nextrr	
StackTreeItemrremote_object_tree_item)r	flist_oid_rrbflistitems       rr	zExecutive.stackviewerps++JAsB OO44Y?ER[[**:6.HBR[[**:6.H((e411$77r!r#)rrrrrNrPrTrXr[r`r	rr!rr'r'3s,B$H1,?8r!r'r?)rczidlelib.idle_test.test_run)	verbosityr#)NN)F)BrrrrrPr$rrhrX_threadrrFr,r=rrrrrrr	r?rwhasattrmodulesmoddelattrr
rIeofrLquitrr r)r+r/Tclr3r4rKrTrFrcrHrlrrWrrrzrrrr	RPCServerrj
TextIOBaserrrr/rkr'runittestrr!r<module>rys	
 s{{=):6*	KK
S()	*+0CKK
'		
 CDHDH

>B
)gkkm
L\&"	9#J!>"	1=%.PN#$#--#$P

0	.I	.,9,^* * ZI8I8Xz	%3i		s5FF#"F#