/opt/imh/python3.13/lib/python3.13/idlelib/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/idlelib/__pycache__/zzdummy.cpython-313.pyc (3283B)
e S r SSKJr SSKJr S r " S S5 r\R 5 \S:X a SSK r \ R " S S
SS9 gg)
zExample extension, also used for testing.
See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
)idleConfwrapsc 4 ^ [ T 5 SU 4S jj5 nU$ )z9Apply a formatting function to all of the selected lines.c > U R R 5 u p#pE[ [ U5 S-
5 H nXV nT" X5 XV' M U R R X#XE5 g)N break) formatter
get_regionrangelen
set_region) selfeventheadtailcharslinesposlineformat_lines 5/opt/imh/python3.13/lib/python3.13/idlelib/zzdummy.pyapplyformat_selection.
.apply s] #'>>#<#<#> EUa(C:D$T0EJ )
!!$e; )Nr )r r s ` r format_selectionr s# ; Lr c \ \ rS rSrSrSSS/4/rS r\S 5 r\ S 5 r
\ S 5 rS
rg)ZzDummy z3Prepend or remove initial text from selected lines.format)zZ inz<>)zZ outz <>c T Xl UR U l UR U l g)z+Initialize the settings for this extension.N)editwintextfregionr
)r r" s r __init__ZzDummy.__init__% s LL r c > [ R " SSS5 U l g)z!Load class variables from config.
extensionsr zz-textN)r GetOptionztext)clss r reloadZzDummy.reload+ s &&|YI r c " U R U 3$ )zInsert text at the beginning of each selected line.
This is bound to the <> virtual event when the extensions
are loaded.
)r* )r r s r
z_in_eventZzDummy.z_in_event0 s **dV$$r c x UR U R 5 ( d SO[ U R 5 nXS $ )zRemove specific text from the beginning of each selected line.
This is bound to the <> virtual event when the extensions
are loaded.
r N)
startswithr* r
)r r zlengths r z_out_eventZzDummy.z_out_event9 s/ ??4::66!C
OH~r )r" r
r# N)
__name__
__module____qualname____firstlineno____doc__menudefsr% classmethodr, r r/ r4 __static_attributes__ r r r r sd =
"
H) J J % % r r __main__Nzidlelib.idle_test.test_zzdummy F) verbosityexit)r: idlelib.configr functoolsr r r r, r6 unittestmainr> r r rG sQ $ ' 'T zMM2aeL r