§
    ”Õ*jÕ  ã                   ó¨   — d Z ddlmZ ddlmZ d„ Z G d„ d¦  «        Ze                     ¦   «          edk    rddl	Z	 e	j
        d	d
d¬¦  «         dS dS )zœExample extension, also used for testing.

See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
é    )ÚidleConf©Úwrapsc                 ó>   ‡ — t          ‰ ¦  «        dˆ fd„	¦   «         }|S )z9Apply a formatting function to all of the selected lines.Nc                 óð   •— | j                              ¦   «         \  }}}}t          t          |¦  «        dz
  ¦  «        D ]}||         } ‰| |¦  «        ||<   Œ| j                              ||||¦  «         dS )Né   Úbreak)Ú	formatterÚ
get_regionÚrangeÚlenÚ
set_region)	ÚselfÚeventÚheadÚtailÚcharsÚlinesÚposÚlineÚformat_lines	           €á!  /home/task_178118881339430/croot/python-split_1781190639776/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/idlelib/zzdummy.pyÚapplyzformat_selection.<locals>.apply   s�   ø€ à#'¤>×#<Ò#<Ñ#>Ô#>Ñ ˆˆd�E˜5Ý�˜U™œ a™Ñ(Ô(ð 	1ð 	1ˆCØ˜”:ˆDØ$˜ T¨4Ñ0Ô0ˆE�#‰JˆJØŒ×!Ò! $¨¨e°UÑ;Ô;Ð;Øˆwó    )Nr   )r   r   s   ` r   Úformat_selectionr      s=   ø€ õ ˆ;ÑÔðð ð ð ð ñ Ôðð €Lr   c                   óh   — e Zd ZdZdddgfgZd„ Zed„ ¦   «         Zed„ ¦   «         Z	ed„ ¦   «         Z
d	S )
ÚZzDummyz3Prepend or remove initial text from selected lines.Úformat)zZ inz<<z-in>>)zZ outz	<<z-out>>c                 óD   — || _         |j        | _        |j        | _        dS )z+Initialize the settings for this extension.N)ÚeditwinÚtextÚfregionr
   )r   r    s     r   Ú__init__zZzDummy.__init__%   s   € àˆŒØ”LˆŒ	Ø œˆŒˆˆr   c                 ó<   — t          j        ddd¦  «        | _        dS )z!Load class variables from config.Ú
extensionsr   zz-textN)r   Ú	GetOptionÚztext)Úclss    r   ÚreloadzZzDummy.reload+   s   € õ Ô& |°YÀÑIÔIˆŒ	ˆ	ˆ	r   c                 ó   — | j         › |› �S )z™Insert text at the beginning of each selected line.

        This is bound to the <<z-in>> virtual event when the extensions
        are loaded.
        )r'   )r   r   s     r   Ú
z_in_eventzZzDummy.z_in_event0   s   € ð ”*Ð$˜dÐ$Ð$Ð$r   c                 óv   — |                      | j        ¦  «        sdnt          | j        ¦  «        }||d…         S )z¥Remove specific text from the beginning of each selected line.

        This is bound to the <<z-out>> virtual event when the extensions
        are loaded.
        r   N)Ú
startswithr'   r   )r   r   Úzlengths      r   Úz_out_eventzZzDummy.z_out_event9   s6   € ð  Ÿ?š?¨4¬:Ñ6Ô6ÐK�!�!½CÀÄ
¹O¼OˆØ�G�H�HŒ~Ðr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úmenudefsr#   Úclassmethodr)   r   r+   r/   © r   r   r   r      s›   € € € € € Ø=Ð=ð 
Ø Ø"ð
ð 	ð€Hð)ð )ð )ð ðJð Jñ „[ðJð ð%ð %ñ Ôð%ð ðð ñ Ôðð ð r   r   Ú__main__Nzidlelib.idle_test.test_zzdummyé   F)Ú	verbosityÚexit)r3   Úidlelib.configr   Ú	functoolsr   r   r   r)   r0   ÚunittestÚmainr6   r   r   ú<module>r?      s½   ððð ð $Ð #Ð #Ð #Ð #Ð #Ø Ð Ð Ð Ð Ð ðð ð ð'ð 'ð 'ð 'ð 'ñ 'ô 'ð 'ðT ‡‚Ñ Ô Ð ð ˆzÒÐØ€O€O€OØ€H„MÐ2¸aÀeÐLÑLÔLÐLÐLÐLð Ðr   