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/python35/lib64/python3.5/idlelib/__pycache__/IdleHistory.cpython-35.opt-2.pyc


���]��@sYddlmZGdd�d�ZedkrUddlmZedddd	d
�dS)�)�idleConfc@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�HistorycCsl||_g|_d|_d|_tjddddd�|_|jd|j�|jd|j	�dS)N�mainr�cyclic��boolz<<history-previous>>z<<history-next>>)
�text�history�prefix�pointerrZ	GetOptionr�bind�history_prev�history_next)�selfr�r�0/opt/alt/python35/lib64/python3.5/IdleHistory.py�__init__
s					zHistory.__init__cCs|jdd�dS)N�reverseF�break)�fetch)r�eventrrrrszHistory.history_nextcCs|jdd�dS)NrTr)r)rrrrrr
#szHistory.history_prevcCs;t|j�}|j}|j}|dk	r�|dk	r�|jjddd�ss|jjdd�|j|kr�d}}|jjdd�|dks�|dkr�|jjdd�}|r�|}n#|jr�d
}n|jj	�dSt|�}x||r
dnd7}|dks,||kr�|jj	�|jrS|dkrSdS|jjdd�|kr�|jj
dd�|jjd|�d}}P|j|}|d|�|kr�t|�|kr�|jj
dd�|jjd|�Pq�W|jjd�|jj
ddd	�||_||_dS)N�insertz!=zend-1cZiomarkrrZselz1.0�end���r)�lenr	rr
rZcompare�getZmark_setrZbell�deleterZseeZ
tag_remove)rrZnhistrr
Znprefix�itemrrrr(sJ		"
			



(	z
History.fetchcCsm|j�}t|�dkrWy|jj|�Wntk
rFYnX|jj|�d|_d|_dS)N�)�striprr	�remove�
ValueError�appendrr
)r�sourcerrr�storeYs
	z
History.storeN)�__name__�
__module__�__qualname__rrr
rr$rrrrrs
1r�__main__)rz"idlelib.idle_test.test_idlehistory�	verbosityr�exitFN)Zidlelib.configHandlerrrr%Zunittestrrrrr�<module>sa