Viewing File: /opt/alt/python35/lib64/python3.5/idlelib/__pycache__/IdleHistory.cpython-35.opt-2.pyc



]@sYddlmZGdddZedkrUddlmZedddd	d
dS))idleConfc@sLeZdZddZddZddZddZd	d
ZdS)HistorycCsl||_g|_d|_d|_tjddddd|_|jd|j|jd|j	dS)Nmainrcyclicboolz<<history-previous>>z<<history-next>>)
texthistoryprefixpointerrZ	GetOptionrbindhistory_prevhistory_next)selfrr0/opt/alt/python35/lib64/python3.5/IdleHistory.py__init__
s					zHistory.__init__cCs|jdddS)NreverseFbreak)fetch)reventrrrrszHistory.history_nextcCs|jdddS)NrTr)r)rrrrrr
#szHistory.history_prevcCs;t|j}|j}|j}|dk	r|dk	r|jjdddss|jjdd|j|krd}}|jjdd|dks|dkr|jjdd}|r|}n#|jrd
}n|jj	dSt|}x||r
dnd7}|dks,||kr|jj	|jrS|dkrSdS|jjdd|kr|jj
dd|jjd|d}}P|j|}|d||krt||kr|jj
dd|jjd|PqW|jjd|jj
ddd	||_||_dS)Ninsertz!=zend-1cZiomarkrrZselz1.0endr)lenr	rr
rZcomparegetZmark_setrZbelldeleterZseeZ
tag_remove)rrZnhistrr
Znprefixitemrrrr(sJ		"
			



(	z
History.fetchcCsm|j}t|dkrWy|jj|Wntk
rFYnX|jj|d|_d|_dS)N)striprr	remove
ValueErrorappendrr
)rsourcerrrstoreYs
	z
History.storeN)__name__
__module____qualname__rrr
rr$rrrrrs
1r__main__)rz"idlelib.idle_test.test_idlehistory	verbosityrexitFN)Zidlelib.configHandlerrrr%Zunittestrrrrr<module>sa
Back to Directory File Manager