+
     BiuU                        ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t
^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIt]! ]P0                  R	,          R
4      '       g?   R1 F   t]! ]]4       ]P0                  R],            K"  	  R]P0                  R	,          n        Rt Rt]]n        ]]n        R2R lt!R3R lt"Rs#R t$]$! R4       ]PJ                  '       d   R t&M]PN                  ! 4       t(](3R lt&Rs)Rs*Rs+R4R lt,R t-R t.R t/R t0R t1R t2R tR t3R t4^t5R t6R  t7 ! R! R"]Pp                  4      t9 ! R# R$]Pt                  4      t; ! R% R&];4      t< ! R' R(];4      t= ! R) R*]P|                  4      t? ! R+ R,4      t@]AR-8X  d   ^ R.IBH,t, ],! R/^R07       ]$! R4       R#   ]  d     Li ; i)5    N)autocomplete)calltip)
debugger_r)
debugobj_r)iomenu)rpc)stackviewerzidlelib.runfirstrunztkinter.Fz	127.0.0.1zCtrl-D (end-of-file)c                     R pVRV RV R2,          pVf   \         P                  ! W#4      pVP                  4       pV'       d   VRV,          ,          pWQP                   RV  R2,          pV# )z!
Warning (from warnings module):
z  File "z", line 
z    %s
: )	linecachegetlinestrip__name__)messagecategoryfilenamelinenoliness   &&&&& "/usr/lib/python3.14/idlelib/run.pyidle_formatwarningr   3   su     	.A9XJixr	22A|  2::<D	Z$b		,,AH    c           	          Vf   \         P                  p VP                  \        WW#V4      4       R #   \         d     R # i ; iN)sysstderrwriter   OSError)r   r   r   r   filer   s   &&&&&&r   idle_showwarning_subprocr"   @   sD     |zz

%8T; 	< s   4 AAc                     V '       d,   \         f"   \        P                  s \        \        n        R # R # \         e   \         \        n        R s R # R # r   )_warnings_showwarningwarningsshowwarningr"   )captures   &r   capture_warningsr(   P   sA      ($,$8$8!#;H  ) !,#8H $(! -r   Tc                      R # r    r*   r   r   handle_tk_eventsr+   b   s    r   c                 (    V P                  R 4       R# )updateN)eval)tcls   &r   r+   r+   g   s     	r   c           	         V s  \        \        P                  R,          4      p\        R4       R.\        P                  R&   \        P                  ! \        R\        T33RR7      P                  4          \        '       d    \        4         \        P                   P#                  RR	R
7      pT'       d3   Tw  pw  rEpT! T/ TB p\        P(                  P+                  Y734       Ku  \-        4        K     \	        R\        P
                  R7        R# ; i  \         d     K  i ; i  \$        P&                   d    Rp Li ; i  \         d    \.        '       d   Rs K  \0         d    \        R4       h  \        P2                  ! 4       w  rp
 \5        4        \        P(                  P+                  XR34        EKN     \6        P4                  ! YT
\        P
                  R7       \        4          EK  ; i; i)   z/IDLE Subprocess: no IP port passed in sys.argv.r!   NT NNN
SockThread)targetnameargsdaemon皙?)blocktimeoutF)no_exitfuncintr   argvprint
__stderr__r(   	threadingThreadmanage_socket	LOCALHOSTstartexit_nowexitKeyboardInterruptr   request_queuegetqueueEmptyresponse_queueputr+   quitting
SystemExitexc_infoprint_exception	traceback)del_exitfuncportrequestseqmethodr8   kwargsrettypevaluetbs   &          r   mainr`   u   s   * K388B<  T$CHHQKM&%t,.  eg
$	xF++//dD/I
 .5++fFd-f-""&&z2 "A?>>	# ) 
 ;;  ! 	x 	U#
	!llnOD!""&&T{3 ))$rOs    C7 8E	 
D !D, 1E	 90E	 +
E	 7DD)%E	 (D))E	 ,EE	 EE	 	G? G?%G?.&G?+G3G<7G?<G?c                    \        ^4       F*  p\        P                  ! V4        \        V \        4      p M-	  \        R\        P                  R7       \        XV 4       RsR# VP                  4        R#   \
         dH   p\        RTP                  ^,          ,           R,           \        P                  R7       Tp Rp?K  Rp?ii ; i)   zIDLE Subprocess: OSError: z, retrying....r2   Nz8IDLE Subprocess: Connection to IDLE GUI failed, exiting.T)rangetimesleepMyRPCServer	MyHandlerr    rA   r8   r   rB   show_socket_errorrH   handle_request)addressiservererrsocket_errors   &    r   rE   rE      s    1X

1	 )4F	  	 *03	@,0
  	.!<"#),9L	s   A77C	<CC	c                    ^ RI p^ RIHp VP                  ! 4       p\	        V4       VP                  4        V! RRV^ ,           RV^,           RV P                   RV P                   R2	VR	7       VP                  4        R# )
r   N)	showerrorzSubprocess Connection Errorz#IDLE's subprocess can't connect to :z.
Fatal OSError #r   zz.
See the 'Startup failure' section of the IDLE doc, online at
https://docs.python.org/3/library/idle.html#startup-failure)parent)	tkintertkinter.messageboxrp   Tkfix_scalingwithdrawerrnostrerrordestroy)rm   rj   rs   rp   roots   &&   r   rh   rh      sy    ,::<DMMO)1'!*Qwqzl K!ii[3<<. 9JJ  	LLNr   c                 x   V \         \        39   d   \        P                  ! 4       p\        P
                  ! V4      ;_uu_ 4        \        P                  ! WV4       R R R 4       VP                  4       P                  R4      R,          R,           .# \        P                  ! W4      #   + '       g   i     LT; i)Nr   )AttributeError	NameErrorioStringIO
contextlibredirect_stderrr   __excepthook__getvaluesplitrU   format_exception_only)typexcr_   rm   s   &&& r   get_message_linesr      s~    
~y))kkm'',,s, -$$T*2.566..s88	 -,s   B))B9	c                  *  aaa ^ RI p V P                  ! 4        \        4        \        P                  o\        P
                  ! 4       ;w  rr4Vw  \        n        \        n        \        n        V\        n	        \        4       oVVV3R loS! WV4       R# )r   Nc                 l  < SP                  \        V4      4       VP                  pVP                  pVe;   \        V4      S9  d+   S
! \	        V4      WDP
                  4       \        RS	R7       MOVeL   VP                  '       g:   \        V4      S9  d*   S
! \	        V4      W3P
                  4       \        RS	R7       V'       dI   \        P                  ! V4      p\        RS	R7       Rp\        WV4       \        P                  ! VS	R7       \        WV4      pV F  p\        VRS	R7       K  	  R # )NzF
The above exception was the direct cause of the following exception:
r2   zE
During handling of the above exception, another exception occurred:
z"Traceback (most recent call last):r3   )endr!   )zrun.pyzrpc.pyzthreading.pyzqueue.pyzdebugger_r.pyzbdb.py)addid__context__	__cause__r]   __traceback__rA   __suppress_context__rU   
extract_tbcleanup_traceback
print_listr   )r   r   r_   contextcausetbeexcludelinesr   efile	print_excseens   &&&      r   r   "print_exception.<locals>.print_exc   s    C//E$!6d5k5*=*=> 28=?!***k%d7mW.C.CD 28=?&&r*C6UC2Gc+  51!#B/D$BU+ r   )r   
checkcacheflush_stdoutr   r   rS   	last_type
last_valuelast_tracebacklast_excset)r   r   valr_   excinfor   r   r   s        @@@r   rT   rT      sd    NJJE \\^+LCb8?5CM3>3#5CL5D,2 cr   c                    V R ,          pV '       d7   V F*  pV ^ ,          ^ ,          P                  V4      '       g   K*   M	  MV ^  K>  V '       d7   V F*  pV R
,          ^ ,          P                  V4      '       g   K*   M	  MV R
 K>  \        V 4      ^ 8X  d(   VR ,          V R &   \        R\        P                  R7       \
        P                  R,          P                  p\        \        V 4      4       FQ  pW,          w  rgrVR8X  d   RpV	'       g-   VP                  R4      '       d   VP                  RRWg3/ 4      p	WgW3W&   KS  	  R	# )r4   z** IDLE Internal Exception: r2   exec?z
-toplevel-z	<pyshell#r   r   Nr=   )countlenrA   r   r   r   objecttable
rpchandlerrc   
startswith
remotecall)
r_   r   orig_tbrpcfiler   rk   fnlnnmr   s
   &&        r   r   r     s   eG
G!uQx~~g&&  qE
G"vayw''  rF
2w!|
1,3::>(33J3r7^59Bk22((i/1h<D  r   c                      R # r   r*   r*   r   r   r   r   7  s    r   c                      \         '       d   ^ RIp V P                  4        \        R4       \        P
                  ! ^ 4       R# )r   NF)r>   atexit_clearr(   r   rI   )r   s    r   rI   rI   :  s(     {UHHQKr   c                 H   ^ RI p\        V P                  P                  RR4      4      pVR8  dr   VP                  P                  V 4       FP  pVP                  P                  WRR7      p\        VR,          4      pV^ 8  g   K;  \        RV,          4      VR&   KR  	  R# R# )	r   Ntkscalinggffffff?T)r{   r7   existssizeg      )	tkinter.fontfloatr   callfontnamesFontr?   round)r{   rs   r   r7   r   r   s   &     r   rv   rv   I  s    DGGLLy12G}LL&&t,D<<$$$$$GDtF|$Dax$U4Z0V	 - r   c                     V P                   e   V P                   R,           MRpV\        P                  ! \        P                  ! V4      4      ,           V n         R # )Nz

r3   )__doc__textwrapfilldedent)funtexttems   && r   fixdocr   U  s9    $'KK$;3;;Chood&;<<CKr   c                    a a \         P                  ! \        P                  4      V3R  l4       o\	        SR\
         R24       \         P                  ! \        P                  4      V 3R l4       o \	        S R\
         R\
         R24       \        P                  ! \        P                  ! 4       \
        ,           4       S\        n        S \        n        R# )c                     < V'       d   \        R 4      h V w  pT^ 8  g   \        R4      hSP                  T\        ,           4      #   \         d    \        R\        T 4       R24      hi ; i)z.setrecursionlimit() takes no keyword argumentsz0setrecursionlimit() takes exactly one argument (z given)z/recursion limit must be greater or equal than 1)	TypeError
ValueErrorr   __wrapped__RECURSIONLIMIT_DELTA)r8   r[   limitsetrecursionlimits   *, r   r   :install_recursionlimit_wrappers.<locals>.setrecursionlimit_  s     @B B	=FE qyAC C !,,U5I-IJJ  	= )),T7< = =	=s   A $A,z#            This IDLE wrapper adds z7 to prevent possible
            uninterruptible loops.c                  :   < S P                  4       \        ,
          # r   )r   r   )getrecursionlimits   r   r   :install_recursionlimit_wrappers.<locals>.getrecursionlimitt  s     ,,.1EEEr   z(            This IDLE wrapper subtracts z# to compensate
            for the z" IDLE adds when setting the limit.N)	functoolswrapsr   r   r   r   r   )r   r   s   @@r   install_recursionlimit_wrappersr   [  s     __S**+K ,K   #$$8#9 :#& ' __S**+F ,F  #))=(> ?)**LP Q
 #//14HHI-C-Cr   c                     \        \        P                  R R4      '       d   \        \        P                  R R4      '       d}   \        P                  P                  \        n        \        P                  P                  \        n        \        P                  ! \        P                  ! 4       \
        ,
          4       R# R# R# )r   N)getattrr   r   r   r   r   r*   r   r   !uninstall_recursionlimit_wrappersr     s     C))=$??C))=$?? # 5 5 A A # 5 5 A Ac3358LLM	 @ @r   c                   &   a  ] tR tRt o R tRtV tR# )rf   i  c                    h   \          d    h \         d    R s\        P                  ! 4         R#  \
        P                  p\        \        P                  ! RR	 R\        P                  ! 4       P                   RT RT: R2	4      TR7       \        P                  ! R
TR7       \        \        P                  ! RR	 24      TR7       R s\        P                  ! 4         R# ; i)Tz
            zU
            Unhandled exception in user code execution server!'
            Thread: z"
            IDLE Client Address: z
            Request: r2   )r   r!   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.
            Nz(----------------------------------------i)rR   EOFErrorrH   threadinterrupt_mainr   rB   rA   r   r   rC   current_threadr7   rU   r   rQ   )selfrX   client_addresserfs   &&& r   handle_errorMyRPCServer.handle_error  s    	$ 	 	$H!!#	$..C(// 'H --/445 6""0!1 2[ !#   c4(// ' H#   #$ H!!#s    C&C&B0C&r*   N)r   
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__s   @r   rf   rf     s     !$ !$r   rf   c                   `   a  ] tR tRt o R	R lt]R 4       t]R 4       t]R 4       tR t	Rt
V tR# )
	StdioFilei  c                \    Wn         R ^/V P                   n        W n        W0n        W@n        R# )widthN)shell_RPCProxy__attributestags	_encoding_errors)r   r   r   encodingerrorss   &&&&&r   __init__StdioFile.__init__  s(    
 -4Q<

(	!r   c                    V P                   # r   )r   r   s   &r   r   StdioFile.encoding  s    ~~r   c                    V P                   # r   )r   r  s   &r   r   StdioFile.errors  s    ||r   c                (    R V P                   ,          # )z<%s>)r   r  s   &r   r7   StdioFile.name  s    		!!r   c                    R # Tr*   r  s   &r   isattyStdioFile.isatty      r   )r   r   r   r   N)zutf-8strict)r   r   r   r   r   propertyr   r   r7   r
  r   r   r   s   @r   r   r     sP          " " r   r   c                   ,   a  ] tR tRt o R tR tRtV tR# )StdOutputFilei  c                    R # r	  r*   r  s   &r   writableStdOutputFile.writable  r  r   c                "   V P                   '       d   \        R 4      h\        P                  WP                  V P
                  4      P                  V P                  V P
                  4      pV P                  P                  WP                  4      # )zwrite to closed file)
closedr   strencoder   r   decoder   r   r   )r   r   s   &&r   r   StdOutputFile.write  s]    ;;;344JJq--5<<T]]DKKXzz99--r   r*   N)r   r   r   r   r  r   r   r   r   s   @r   r  r    s     . .r   r  c                   D   a  ] tR tRt o RtR tR	R ltR	R ltR tRt	V t
R# )
StdInputFilei  r3   c                    R # r	  r*   r  s   &r   readableStdInputFile.readable  r  r   c                   V P                   '       d   \        R 4      hVf   RpM;\        V\        4      '       g&   \	        R\        V4      P                  ,           4      hV P                  pRV n        V^ 8  d0   V P                  P                  4       ;p'       d   W#,          pK,   V# \        V4      V8  d.   V P                  P                  4       pV'       g   M
W#,          pK=  W!R V n        VRV pV# )read from closed fileNmust be int, not r3   r=   )r  r   
isinstancer?   r   r]   r   _line_bufferr   readliner   )r   r   resultr   s   &&  r   readStdInputFile.read  s    ;;;455<DD#&&/$t*2E2EEFF""!8**--//$/ 0  f+$zz**,U &uDET]Fr   c                   V P                   '       d   \        R 4      hVf   RpM;\        V\        4      '       g&   \	        R\        V4      P                  ,           4      hV P                  ;'       g    V P                  P                  4       pV^ 8  d   \        V4      pVP                  R^ V4      pV^ 8  d
   V^,           pW!R V n        VRV # )r   Nr!  r   r=   )r  r   r"  r?   r   r]   r   r#  r   r$  r   find)r   r   r   eols   &&  r   r$  StdInputFile.readline  s    ;;;455<DD#&&/$t*2E2EEFF  99DJJ$7$7$9!8t9Diia&!87D KET{r   c                :    V P                   P                  4        R # r   )r   closer  s   &r   r-  StdInputFile.close  s    

r   )r#  N)r=   )r   r   r   r   r#  r  r&  r$  r-  r   r   r   s   @r   r  r    s#     L*  r   r  c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )rg   i  c                   \        V 4      pV P                  R V4       V P                  R4      V n        \	        V P                  R\
        P                  \
        P                  4      \        n	        \        V P                  R\
        P                  \
        P                  4      \        n        \        V P                  R\
        P                  R4      \        n        \        P                  \        n        ^ RIpVP                   Vn        \        P                  V n        \'        4        V P                  R4      V n        \        P*                  P-                  V RRR	7       R# )
r   consolestdinstdoutr   backslashreplaceNinterpr:   )myseqwait)	Executiveregisterget_remote_proxyr1  r  r   r   r   r   r2  r  r3  r   r   displayhookpydoc
plainpagerpager_keep_stdinr   r5  
RPCHandlergetresponse)r   	executiver<  s   &  r   handleMyHandler.handle  s    dO	fi(,,Y7 w!'&--A	"4<<#)??FMMC
"4<<#)??4FH
 //&& 99')++H5""4t$"?r   c                2    \         P                  ! ^
4       R# )
   N)rd   re   r  s   &r   exithookMyHandler.exithook,  s    

2r   c                4    R s \        P                  ! 4        R# TNrQ   r   r   r  s   &r   EOFhookMyHandler.EOFhook0       r   c                4    R s \        P                  ! 4        R# rJ  rK  r  s   &r   decode_interrupthookMyHandler.decode_interrupthook6  rN  r   )r?  r1  r5  N)
r   r   r   r   rC  rG  rL  rP  r   r   r   s   @r   rg   rg     s     @4    r   rg   c                   T   a  ] tR tRt o R tR tR tR tR tR t	R t
RR
 ltRtV tR	# )r8  i=  c                    Wn         \        P                  R J dL   \        P                  V n        \        P                  ! 4       V n        \        P                  ! 4       V n        R# / V n        R# )FN)
r   idlelibtesting__main____dict__localsr   Calltipr   AutoComplete)r   r   s   &&r   r   Executive.__init__?  sF    $??e#"++DK"??,DL , 9 9 ;DDKr   c                    R V n         Rs \        WP                  4       Rs \	        4        R #   Rsi ; i  \
         d   pTP                  '       dl   TP                  ^ ,          p\        T\        R 4      \        34      '       g2   \        R\        T4      ,           \        P                  R7        R p?R #  R p?R #  R p?R # R p?i \        P                  ! 4       T n         \        '       d   \!        4        \        P"                  \        P$                  J d   \'        4        MK \        P"                  ! T P                   !   M+   \        P                  ! 4       T n         \'        4         M; iT P(                  P*                  P-                  R4      pT'       d(   T P(                  P.                  P1                  4         R #  R # ; i)NTFzSystemExit: r2   z<<toggle-jit-stack-viewer>>)user_exc_infointerruptibler   rX  r   rR   r8   r"  r]   r?   rA   r  r   r   rS   rQ   rI   
excepthookr   rT   r   r1  getvarr5  open_remote_stack_viewer)r   codeeobjits   &&   r   runcodeExecutive.runcodeH  s6   	!%D M&T;;' %. N/ !& 	EvvvVVAY!"tDz3&788.3r72DD 9 
	B!$Dx~~!3!33!&NND$6$67&),D&#%//))001NOC&&??A sJ   	7 0 7 47 G	A1C*G	07G	(EG	&E/-1G	$G	c                L    \         '       d   \        P                  ! 4        R # R # r   )r^  r   r   r  s   &r   interrupt_the_serverExecutive.interrupt_the_serveri  s    =!!# r   c                D    \         P                  ! V P                  V4      # r   )r   start_debuggerr   )r   gui_adap_oids   &&r   start_the_debuggerExecutive.start_the_debuggerm  s    ((,GGr   c                <    V P                   P                  V4       R # r   )r   
unregister)r   idb_adap_oids   &&r   stop_the_debuggerExecutive.stop_the_debuggerp  s    ""<0r   c                8    V P                   P                  V4      # r   )r   	fetch_tip)r   r7   s   &&r   get_the_calltipExecutive.get_the_calltipt  s    ||%%d++r   c                8    V P                   P                  W4      # r   )r   fetch_completions)r   whatmodes   &&&r   get_the_completion_list!Executive.get_the_completion_listw  s      224>>r   Nc                `   V P                   '       d   V P                   w  r#pMR # R pVe   V P                  P                  V4      pV'       d1   VP                  P                  R,          R9   d   VP
                  pK8  WCn        \        P                  ! W54      p\        P                  ! V4      # )Nr   )r   run)r]  r   r:  tb_frame	f_globalstb_nextr   r	   StackTreeItemr   remote_object_tree_item)r   	flist_oid_r   r_   flistitems   &&     r   r	   Executive.stackviewerz  s    ++JAB OO44Y?ER[[**:6.HB((411$77r   )r   r   rX  r   r]  r   )r   r   r   r   r   rf  ri  rn  rs  rw  r}  r	   r   r   r   s   @r   r8  r8  =  s4     B$H1,?8 8r   r8  rV  )r`   zidlelib.idle_test.test_run)	verbosity)simpledialog
messageboxr   dialog
filedialogcommondialogttkr   )NN)F)Cr   r   r   r   rM   r   r   rd   rU   _threadr   rC   r%   rT  r   r   r   r   r   r   r	   rV  rs   hasattrmodulesmoddelattrr
   rF   eofrI   quitr   r   r"   r$   r(   rU  r+   Tclr/   rH   rQ   r^  r`   rE   rh   r   rT   r   r   rv   r   r   r   r   	RPCServerrf   
TextIOBaser   r  r  r@  rg   r8  r   unittestr*   r   r   <module>r     s     	   
                 s{{=):66 	KK
S()	 +0CKK'		
 CDHDH
  )  
??? ++-C   L\&"	9#J!>"	1=  %.PN#$#-- #$P 6	.I 	.,9 ,^*  * ZI8 I8X z	%3  }  		s   G
 
GG