Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.10/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.10/idlelib/__pycache__/zzdummy.cpython-310.pyc
o

�9j��@sbdZddlmZddlmZdd�ZGdd�d�Ze��edkr/dd	l	Z	e	j
d
ddd
�d	Sd	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��wrapscst��d�fdd�	�}|S)z9Apply a formatting function to all of the selected lines.NcsT|j��\}}}}tt|�d�D]
}||}�||�||<q|j�||||�dS)N��break)�	formatter�
get_region�range�len�
set_region)�self�event�head�tail�chars�lines�pos�line��format_line��&/usr/lib/python3.10/idlelib/zzdummy.py�applyszformat_selection.<locals>.apply)Nr)rrrrr�format_selectionsrc@sJeZdZdZdddgfgZdd�Zedd��Zed	d
��Z	edd��Z
d
S)�ZzDummyz3Prepend or remove initial text from selected lines.�format)zZ inz<<z-in>>)zZ outz	<<z-out>>cCs||_|j|_|j|_dS)z+Initialize the settings for this extension.N)�editwin�text�fregionr)rrrrr�__init__%szZzDummy.__init__cCst�ddd�|_dS)z!Load class variables from config.�
extensionsrzz-textN)r�	GetOption�ztext)�clsrrr�reload+szZzDummy.reloadcCs|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rrrr�
z_in_event0szZzDummy.z_in_eventcCs&|�|j�sdnt|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.
        rN)�
startswithr"r
)rr�zlengthrrr�z_out_event9szZzDummy.z_out_eventN)�__name__�
__module__�__qualname__�__doc__�menudefsr�classmethodr$rr%r(rrrrrs��

r�__main__Nzidlelib.idle_test.test_zzdummy�F)�	verbosity�exit)r,�idlelib.configr�	functoolsrrrr$r)�unittest�mainrrrr�<module>s*�

Youez - 2016 - github.com/yon3zu
LinuXploit