HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/idlelib/__pycache__/history.cpython-310.opt-2.pyc
o

�i��@sF	ddlmZGdd�d�Zedkr!ddlmZedddd	�d
Sd
S)�)�idleConfc@s6eZdZ	dd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�HistorycCsN	||_g|_d|_d|_t�ddddd�|_|�d|j�|�d|j	�dS)N�mainr�cyclic��boolz<<history-previous>>z<<history-next>>)
�text�history�prefix�pointerrZ	GetOptionr�bind�history_prev�history_next)�selfr�r�,/usr/local/lib/python3.10/idlelib/history.py�__init__szHistory.__init__cC�	|jdd�dS)NF��reverse�break��fetch�r�eventrrrr�zHistory.history_nextcCr)NTrrrrrrrr
$rzHistory.history_prevcCs�	t|j�}|j}|j}|dur3|dur3|j�ddd�s(|j�dd�|j|kr3d}}|j�dd�|dus;|durT|j�dd�}|rG|}n
|jrMd}n|j�	�dSt|�}	||r^dnd7}|dksi||kr�|j�	�|jsw|dkrwdS|j�dd�|kr�|j�
dd�|j�d|d	�d}}n$|j|}|d|�|kr�t|�|kr�|j�
dd�|j�d|d	�nqY|j�d�|j�
d
dd�||_||_dS)
N�insertz!=zend-1cZiomark���Trr�stdinZselz1.0�end)�lenr	rr
rZcompare�getZmark_setrZbell�deleterZseeZ
tag_remove)rrZnhistrr
Znprefix�itemrrrr)sN



�
z
History.fetchcCsV	|��}t|�dkr#z|j�|�Wn	tyYnw|j�|�d|_d|_dS)N�)�stripr r	�remove�
ValueError�appendrr
)r�sourcerrr�storeZs�
z
History.storeN)�__name__�
__module__�__qualname__rrr
rr*rrrrrs1r�__main__)rzidlelib.idle_test.test_historyr$F)�	verbosity�exitN)Zidlelib.configrrr+Zunittestrrrrr�<module>sb�