Your IP : 216.73.216.213


Current Path : /opt/alt/python310/lib64/python3.10/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/idlelib/__pycache__/history.cpython-310.opt-2.pyc

o

0�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	GetOptionrZbind�history_prev�history_next)�selfr�r�6/opt/alt/python310/lib64/python3.10/idlelib/history.py�__init__szHistory.__init__cC�	|jdd�dS)NF��reverse�break��fetch�rZeventrrrr
�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�)�striprr	�remove�
ValueError�appendrr
)r�sourcerrr�storeZs�
z
History.storeN)�__name__�
__module__�__qualname__rr
rrr(rrrrrs1r�__main__)rzidlelib.idle_test.test_historyr"F)�	verbosity�exitN)Zidlelib.configrrr)Zunittestrrrrr�<module>sb�