python (3.12.0)

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

̑eR	ddlZddlmZddlmZgdZdadZdZGddeZ	Gd	d
Z
edk(rddlm
Z
e
d
ddyy)N)
messagebox)EditorWindow)zfile "([^"]*)", line (\d+)z([^\s]+)\((\d+)\)z^(\s*\S.*?):\s*(\d+):z([^\s]+):\s*(\d+):z^\s*(\S.*?):\s*(\d+):c|	tDcgc]&}tj|tj(c}aycc}wN)file_line_patsrecompile
IGNORECASEfile_line_progs)pats B/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/outwin.py
compile_progsrs3E#12zz#r}}52O2s+9c 	ts
ttD]H}|j|}|s|jdd\}}	t	|}|jny	|t|fS#t$rYewxYw#t$rYywxYw)N)	rrsearchgroupopencloseOSErrorint	TypeError)lineprogmatchfilenamelinenofs      r
file_line_helperrsD!${{1a0Hf
N	V$$

s$A2%B2	A>=A>	B
B
cTeZdZ	gdZdZdZdZdZdZd
dZ	dZ
d	Zd
ZddZ
y)OutputWindow))Cutz<<cut>>rmenu_check_cut)Copyz<<copy>>rmenu_check_copy)Pastez	<<paste>>rmenu_check_paste)NNN)zGo to file/line<<goto-file-line>>NFc|tj|g||jjd|jy)Nr()r__init__textbindgoto_file_line)selfargss  r
r*zOutputWindow.__init__Ns.d*T*		+T-@-@Ac	y)NF)r.rs  r
ispythonsourcezOutputWindow.ispythonsourceSs@r0c	y)NOutputr2r.s r
short_titlezOutputWindow.short_titleWs'r0c,	|jrdSdS)Nyesno)	get_savedr6s r
	maybesavezOutputWindow.maybesave[sE(u2d2r0c	|jj||||jj||jjt	|Sr)r+insertseeupdate_idletaskslenr.stagsmarks    r
writezOutputWindow.write`sH	 	
		q$'		

d		""$1v
r0c6	|D]}|j|yr)rF)r.linesrs   r

writelineszOutputWindow.writelinesvs ,	DJJt	r0c	yrr2r6s r
flushzOutputWindow.flush{sBr0c.tj|i|yr)r	showerror)r.r/kwargss   r
rMzOutputWindow.showerrorsd-f-r0Nc*	|jjdd}t|}|sH|jjdd}t|}|s|jdd|jy|\}}|jj||y)Nzinsert linestartzinsert lineendzinsert -1line linestartzinsert -1line lineendzNo special linezTThe line you point at doesn't look like a valid file name followed by a line number.)parent)r+getrrMflistgotofileline)r.eventrresultrrs      r
r-zOutputWindow.goto_file_lines	yy}}/1AB!$'99==!:!8:D%d+F%C99	&
!&

&1r0)r2r>r)__name__
__module____qualname__rmenu_specsallow_code_contextr*r3r7r<rFrIrKrMr-r2r0r
r!r!:sDKB
3
,

.2r0r!c0eZdZddiddidZdZdZdZy)	OnDemandOutputWindow
foregroundbluez#007700)stdoutstderrc ||_d|_yr)rRowin)r.rRs  r
r*zOnDemandOutputWindow.__init__s
	r0cv|js|j|jj|||yr)rbsetuprFrBs    r
rFzOnDemandOutputWindow.writes&yyJJL		4&r0ct|jx|_}|j}|jjD]\}}|s	|j|fi||jd|jj|_y)Nsel)	r!rRrbr+tagdefsitems
tag_configure	tag_raiserF)r.rbr+tagcnfs     r
rdzOnDemandOutputWindow.setupsu'

33	Dyy**,	/HC"""3.#.	/	
uYY__
r0N)rVrWrXrgr*rFrdr2r0r
r\r\s*!&) ),G'
%r0r\__main__)mainzidlelib.idle_test.test_outwinrF)	verbosityexit)rtkinterridlelib.editorrrrrrr!r\rVunittestrnr2r0r
<module>rtse
'28a2<a2J%%4z	(AEBr0