+
   6 mo                      ^ 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Ht ^ RIt^ RIt]! ]P2                  R
,          R4      '       g?   R1 F   t]! ]]4       ]P2                  R],            K"  	  R]P2                  R
,          n        Rt Rt]]n        ]] n        R2R lt"R3R lt#Rs$R t%]%! R4       ]PL                  '       d   R t'M]PP                  ! 4       t)])3R lt'Rs*Rs+Rs,R4R lt-R t.R t/R t0R t1R t2R t3R tR 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)stackviewer)utilz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   4   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#   A   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)   Q   sA      ($,$8$8!#;H  ) !,#8H $(! -r   Tc                      R # r    r+   r   r   handle_tk_eventsr,   c   s    r   c                 (    V P                  R 4       R# )updateN)eval)tcls   &r   r,   r,   h   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methodr9   kwargsrettypevaluetbs   &          r   mainra   v   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....r3   Nz8IDLE Subprocess: Connection to IDLE GUI failed, exiting.T)rangetimesleepMyRPCServer	MyHandlerr!   rB   r9   r   rC   show_socket_errorrI   handle_request)addressiservererrsocket_errors   &    r   rF   rF      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\        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.messageboxrq   Tkr
   fix_scalingwithdrawerrnostrerrordestroy)rn   rk   rt   rq   roots   &&   r   ri   ri      s    ,::<DT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splitrV   format_exception_only)typexcr`   rn   s   &&& r   get_message_linesr      s~    
~y))kkm'',,s, -$$T*2.566..s88	 -,s   B))B9	c                  h  aaaaa	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Ro^o	^
o^ oRVVVVV	V
V3R lloRVVV
VV3R llo
S
! WV4       R# )r   Nc                   < S^,          oT;'       g    RpSS8  d   \        V RS R2SR7       S^,          oR# V'       d   V'       g   \        RSR7       M\        V R2SR7       \        P                  ! V4      p\        VS4       \        P                  ! V4       F:  pVP                  4       P                  4        F  p\        V RV 2SR7       K  	  K<  	  \        WV4      pV F  p\        V RV 2R	SR
7       K  	  \        VP                  4      p	V	S8:  d   T	p
M	S^,           p
\        VP                  RV
 ^4       EF0  w  rVS8  pV^8X  d   RMRpV'       g   \        V4      MRp\        V V RV R2SR7       V'       d-   V	S,
          pV^8  d   RMR	p\        V RV RV 2SR7       RpM\        V4      S9  da   V'       g   S! \        V4      WP                  R4       M$S! \        V4      WP                  VR,           4       \        V\         4      '       * pM(\        V R\        V4      P"                   R2SR7       RpV'       g   EK  W8X  g   EK   \        V R2SR7       EK3  	  S^,          oR# )r2   z  z| ... (max_group_depth is )r3   Nz6  + Exception Group Traceback (most recent call last):z4| Exception Group Traceback (most recent call last):| r4   endr"   z+-z...z+---------------- z ----------------r   z  | and z more exceptionTz    z  | <exception z has printed>z'  +------------------------------------)rB   rV   
extract_tbcleanup_tracebackformat_listrstrip
splitlinesr   len
exceptions	enumeratestridr^   __traceback__
isinstanceBaseExceptionGroupr   )r   r   r`   prefixprefix2tber   sublinelinesnum_excsnrl   sub	truncatedfirst_line_pretitle	remainingpluralneed_print_underlineefileexcludegroup_depthmax_group_depthmax_group_width	print_excseens   &&&&               r   print_exc_group(print_exception.<locals>.print_exc_group  sc   q..D(WI77HJ1KNUZ[ TU\ab&&r*Cc7+!--c2#{{}779GWIRy1>  : 3 "#B/DWIRv&BU; s~~&&A!#Ar 2A6FA_,I%&!VTN"+CFEWIn--?wFWX_de$6	 )A2	)OF8L "'+$C$d3i.?.?Hd3i.?.?$O+5c;M+N'N$	c1C1C0DMRY^_'+$##	!HIPUVV+ 7, 	qr   c                   < SP                  \        V4      4       VP                  pVP                  pV'       d   V R 2MRpVeD   \        V4      S9  d4   S! \	        V4      WUP
                  V4       \        V RV RV 2SR7       MXVeU   VP                  '       gC   \        V4      S9  d3   S! \	        V4      WDP
                  V4       \        V RV RV 2SR7       \        V\        4      '       d   S! WW#R7       R# V'       d   \        V R2SR7       \        P                  ! V4      p\        VS4       V'       dV   \        P                  ! V4       F:  pVP                  4       P                  4        F  p	\        V R V	 2SR7       K  	  K<  	  M\        P                   ! VSR7       \#        WV4      p
V
 F  p\        V V 2RSR	7       K  	  R# )
r   r4   Nr   zEThe above exception was the direct cause of the following exception:
r3   zDDuring handling of the above exception, another exception occurred:
)r   z"Traceback (most recent call last):r   )addr   __context__	__cause__r^   r   rB   __suppress_context__r   r   rV   r   r   r   r   r   
print_listr   )r   r   r`   r   contextcauser   r   r   r   r   r   r   r   r   r   s   &&&&       r   r   "print_exception.<locals>.print_exc6  s   C//#)VHB-rE$!6d5k5*=*=vFWIRy )229<BGI!***k%d7mW.C.CVLWIRy )229<BGIc-..Cb8	!CD5Q**2.!#w/ ) 5 5c :'+{{}'?'?'AG!VHBwi"8uE (B !; ((59%c3E	$(bu= r   )zrun.pyzrpc.pyzthreading.pyzqueue.pyzdebugger_r.pyzbdb.py)r4   )r   
checkcacheflush_stdoutr   r   rT   	last_type
last_valuelast_tracebacklast_excset)r   r   valr`   excinfor   r   r   r   r   r   r   r   s        @@@@@@@@r   rU   rU      s    NJJE \\^+LCb8?5CM3>3#5CL5D*GOOK1 1f> >@ 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	# )r5   z** IDLE Internal Exception: r3   exec?z
-toplevel-z	<pyshell#r   r   Nr>   )countr   rB   r   r   r   objecttable
rpchandlerrd   
startswith
remotecall)
r`   r   orig_tbrpcfiler   rl   fnlnnmr   s
   &&        r   r   r   X  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   w  s    r   c                      \         '       d   ^ RIp V P                  4        \        R4       \        P
                  ! ^ 4       R# )r   NF)r?   atexit_clearr)   r   rJ   )r   s    r   rJ   rJ   z  s(     {UHHQKr   c                     V P                   e   V P                   R,           MRpV\        P                  ! \        P                  ! V4      4      ,           V n         R # )Nz

r4   )__doc__textwrapfilldedent)funtexttems   && r   fixdocr     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)r9   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>.getrecursionlimit  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# )rg   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: r3   )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)rS   EOFErrorrI   threadinterrupt_mainr   rC   rB   r   r   rD   current_threadr8   rV   r   rR   )selfrY   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   rg   rg     s     !$ !$r   rg   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   r8   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  r8   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   r   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  r4   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 r4   r>   )r'  r   r   r@   r   r^   r   _line_bufferr
  readliner   )r   size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 # )r1  Nr2  r   r>   )r'  r   r   r@   r   r^   r   r3  r
  r4  r   find)r   r5  r   eols   &&  r   r4  StdInputFile.readline2  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.closeB  s    

r   )r3  N)r>   )r   r   r   r  r3  r.  r7  r4  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# )rh   iF  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_proxyrB  r,  r   r  r  r   rC  r"  rD  r   r   displayhookpydoc
plainpagerpager_keep_stdinr   rF  
RPCHandlergetresponse)r   	executiverM  s   &  r   handleMyHandler.handleH  s    dO	fi(,,Y7 w!'&--A	"4<<#)??FMMC
"4<<#)??4FH
 //&& 99')++H5""4t$"?r   c                2    \         P                  ! ^
4       R# )
   N)re   rf   r  s   &r   exithookMyHandler.exithookb  s    

2r   c                4    R s \        P                  ! 4        R# TNrR   r   r   r  s   &r   EOFhookMyHandler.EOFhookf       r   c                4    R s \        P                  ! 4        R# r[  r\  r  s   &r   decode_interrupthookMyHandler.decode_interrupthookl  r_  r   )rP  rB  rF  N)
r   r   r   r  rT  rX  r]  ra  r  r  r  s   @r   rh   rh   F  s     @4    r   rh   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	# )rI  is  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__u  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: r3   z<<toggle-jit-stack-viewer>>)user_exc_infointerruptibler   ri  r   rS   r9   r   r^   r@   rB   r   r   r   rT   rR   rJ   
excepthookr   rU   r   rB  getvarrF  open_remote_stack_viewer)r   codeeobjits   &&   r   runcodeExecutive.runcode~  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   )ro  r   r   r  s   &r   interrupt_the_serverExecutive.interrupt_the_server  s    =!!# r   c                D    \         P                  ! V P                  V4      # r   )r   start_debuggerr   )r   gui_adap_oids   &&r   start_the_debuggerExecutive.start_the_debugger  s    ((,GGr   c                <    V P                   P                  V4       R # r   )r   
unregister)r   idb_adap_oids   &&r   stop_the_debuggerExecutive.stop_the_debugger  s    ""<0r   c                8    V P                   P                  V4      # r   )r   	fetch_tip)r   r8   s   &&r   get_the_calltipExecutive.get_the_calltip  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_list  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)rn  r   rK  tb_frame	f_globalstb_nextr   r	   StackTreeItemr   remote_object_tree_item)r   	flist_oid_r   r`   flistitems   &&     r   r	   Executive.stackviewer  s    ++JAB OO44Y?ER[[**:6.HB((411$77r   )r   r   ri  r   rn  r   )r   r   r   r  r  rw  rz  r  r  r  r  r	   r  r  r  s   @r   rI  rI  s  s4     B$H1,?8 8r   rI  rg  )ra   zidlelib.idle_test.test_run)	verbosity)simpledialog
messageboxfontdialog
filedialogcommondialogttkr   )NN)F)Cr   r   r   r   rN   r   r   re   rV   _threadr   rD   r&   re  r   r   r   r   r   r   r	   r
   rg  rt   hasattrmodulesmoddelattrr   rG   eofrJ   quitr   r   r#   r%   r)   rf  r,   Tclr0   rI   rR   ro  ra   rF   ri   r   rU   r   r   r   r   r   r   	RPCServerrg   
TextIOBaser  r"  r,  rQ  rh   rI  r   unittestr+   r   r   <module>r     s     	   
                  s{{=):66 	KK
S()	 +0CKK'		
 CDHDH
  )  
??? ++-C   L\&"	9bH!>""=  %.PN#$#-- #$P 6	.I 	.,9 ,^*  * ZI8 I8X z	%3  g  		s   G GG