python (3.12.0)

(root)/
lib/
python3.12/
idlelib/
__pycache__/
zzdummy.cpython-312.opt-1.pyc

̑edZddlmZddlmZdZGddZejedk(rddl	Z	e	jd	d
dyy)
zExample extension, also used for testing.

See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
)idleConfwrapsc0tdfd	}|S)z9Apply a formatting function to all of the selected lines.c|jj\}}}}tt|dz
D]}||}||||<|jj	||||y)Nbreak)	formatter
get_regionrangelen
set_region)	selfeventheadtailcharslinesposlineformat_lines	        C/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/zzdummy.pyapplyzformat_selection.<locals>.applysp#'>>#<#<#> dE5Ua(	1C:D$T40E#J	1	
!!$eU;)Nr)rrs` rformat_selectionrs#;LrcTeZdZdZdddgfgZdZedZedZ	edZ
y	)
ZzDummyz3Prepend or remove initial text from selected lines.format)zZ inz<<z-in>>)zZ outz	<<z-out>>cV||_|j|_|j|_y)z+Initialize the settings for this extension.N)editwintextfregionr
)rr s  r__init__zZzDummy.__init__%sLL	 rc<tjddd|_y)z!Load class variables from config.
extensionsrzz-textN)r	GetOptionztext)clss rreloadzZzDummy.reload+s&&|YI	rc"|j|S)zInsert text at the beginning of each selected line.

        This is bound to the <<z-in>> virtual event when the extensions
        are loaded.
        )r')rrs  r
z_in_eventzZzDummy.z_in_event0s**dV$$rcp|j|jsdnt|j}||dS)zRemove specific text from the beginning of each selected line.

        This is bound to the <<z-out>> virtual event when the extensions
        are loaded.
        rN)
startswithr'r
)rrzlengths   rz_out_eventzZzDummy.z_out_event9s. ??4::6!C

OGH~rN)__name__
__module____qualname____doc__menudefsr#classmethodr)rr+r/rrrrsd=
 "
	H)JJ%%rr__main__Nzidlelib.idle_test.test_zzdummyF)	verbosityexit)r3idlelib.configr	functoolsrrrr)r0unittestmainr6rr<module>r?sS$''TzHMM2aeLr