HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/autoexpand.cpython-36.opt-2.pyc
3

��2a��@sBddlZddlZGdd�d�Zedkr>ddlmZeddd�dS)	�Nc@s<eZdZejejdZdd�Zdd�Zdd�Z	dd	�Z
d
S)�
AutoExpand�_cCs|j|_|jj|_d|_dS)N)�text�bell�state)�selfZeditwin�r�//opt/alt/python36/lib64/python3.6/autoexpand.py�__init__s
zAutoExpand.__init__c
Cs�|jjd�}|jjdd�}|js.|j�}d}n*|j\}}}}||ksL||krX|j�}d}|sh|j�dS|j�}|jjdt|�d�||}	|dt|�}|dkr�|j�|jj	d|	�|jjd�}|jjdd�}||||f|_dS)N�insertzinsert linestartzinsert lineendr�breakzinsert - %d chars�)
r�index�getr�getwordsr�getprevword�delete�lenr)
rZeventZ	curinsertZcurline�wordsrr�line�wordZnewwordrrr	�expand_word_events.zAutoExpand.expand_word_eventc	Cs�|j�}|sgS|jjdd�}tjd|d|�}~|jjdd�}tjd|d|�}~|rh|rhgSg}i}|j�x*|D]"}|j|�r�q~|j|�|||<q~Wx*|D]"}|j|�r�q�|j|�|||<q�W|j|�|S)Nz1.0zinsert wordstartz\bz\w+\bzinsert wordend�end)rrr�re�findall�reverse�append)	rrZbeforeZwbefore�afterZwafterr�dict�wrrr	r6s4






zAutoExpand.getwordscCsJ|jjdd�}t|�}x&|dkr<||d|jkr<|d}qW||d�S)Nzinsert linestartrrr
)rrr�	wordchars)rr�irrr	rUs
zAutoExpand.getprevwordN)�__name__�
__module__�__qualname__�stringZ
ascii_letters�digitsr r
rrrrrrr	rs
r�__main__)�mainz!idlelib.idle_test.test_autoexpand�)�	verbosity)rr%rr"Zunittestr(rrrr	�<module>s
K