Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/idlelib/IdleHistory.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s'ddlmZddd��YZdS(i�(tidleConftHistorycBsJeZdd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(s
cCsu||_g|_d|_d|_||_tjddddd�|_|j	d|j
�|j	d|j�dS(NtmainRtcyclicitbools<<history-previous>>s<<history-next>>(ttextthistorytNonethistory_prefixthistory_pointert
output_sepRt	GetOptionRtbindthistory_prevthistory_next(tselfRR
((s)/sys/lib/python2.7/idlelib/IdleHistory.pyt__init__s					cCs|jd�dS(Nitbreak(t
history_do(Rtevent((s)/sys/lib/python2.7/idlelib/IdleHistory.pyRs
cCs|jd�dS(NiR(R(RR((s)/sys/lib/python2.7/idlelib/IdleHistory.pyR
s
cCs.|jj||�j|j�}dj|�S(Ns
(RtgettsplitR
tjoin(Rtstarttendtlines((s)/sys/lib/python2.7/idlelib/IdleHistory.pyt_get_sources!cCs2|jj|jd��}|jj||�dS(Ns
(R
RRRtinsert(Rtwheretsourcetoutput((s)/sys/lib/python2.7/idlelib/IdleHistory.pyt_put_sourcesc	Cs>t|j�}|j}|j}|dk	r�|dk	r�|jjddd�sp|jdd�|j|kr�d}}q�n|dks�|dkr�|jdd�}|r�|}q�|jr�d}q�|jj	�dSnt|�}x|r|d}n
|d}|dks#||kr�|jj	�|jrJ|dkrJdS|jdd�|kr�|jj
dd�|jd|�nd}}Pn|j|}|| |kr�|�|kr�jj
dd�|jd|�Pq��jjdd�|jj
d�|jjdd	d
�||_||_dS(NRs!=send-1ctiomarki�iitsels1.0R(tlenRR	RRRtcompareRRtbelltdeleteRtmark_settseet
tag_remove(Rtreversetnhisttpointertprefixtnprefixtitem((s)/sys/lib/python2.7/idlelib/IdleHistory.pyR!sN					





"	cCso|j�}t|�dkrYy|jj|�Wntk
rEnX|jj|�nd|_d|_dS(Ni(	tstripR"Rtremovet
ValueErrortappendRR	R(RR((s)/sys/lib/python2.7/idlelib/IdleHistory.pyt
history_storeNs
	(	t__name__t
__module__RRR
RRRR3(((s)/sys/lib/python2.7/idlelib/IdleHistory.pyRs
					-N((tidlelib.configHandlerRR(((s)/sys/lib/python2.7/idlelib/IdleHistory.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].