HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/idlelib/__pycache__/IdleHistory.cpython-35.pyc


Fa@s_dZddlmZGdddZedkr[ddlmZeddd	d
ddS)
z9Implement Idle Shell history mechanism with History class)idleConfc@sReZdZdZddZddZddZdd	Zd
dZdS)
Historya@ Implement Idle Shell history mechanism.

    store - Store source statement (called from PyShell.resetoutput).
    fetch - Fetch stored statement matching prefix already entered.
    history_next - Bound to <<history-next>> event (default Alt-N).
    history_prev - Bound to <<history-prev>> event (default Alt-P).
    cCsl||_g|_d|_d|_tjddddd|_|jd|j|jd|j	dS)	adInitialize data attributes and bind event methods.

        .text - Idle wrapper of tk Text widget, with .bell().
        .history - source statements, possibly with multiple lines.
        .prefix - source already entered at prompt; filters history list.
        .pointer - index into history.
        .cyclic - wrap around history list (or not).
        Nmainrcyclicboolz<<history-previous>>z<<history-next>>)
texthistoryprefixpointerrZ	GetOptionrZbindhistory_prevhistory_next)selfrr)/usr/lib/python3.5/idlelib/IdleHistory.py__init__
s					zHistory.__init__cCs|jdddS)z4Fetch later statement; start with ealiest if cyclic.reverseFbreak)fetch)reventrrrr
szHistory.history_nextcCs|jdddS)z0Fetch earlier statement; start with most recent.rTr)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
dnd7}|dks,||kr|jj	|jrS|dkrSdS|jjdd|kr|jj
dd|jjd|d}}P|j|}|d||krt||kr|jj
dd|jjd|PqW|jjd|jj
dd	d
||_||_dS)
a+Fetch statememt and replace current line in text widget.

        Set prefix and pointer as needed for successive fetches.
        Reset them to None, None when returning to the start line.
        Sound bell when return to start line or cannot leave a line
        because cyclic is False.
        Ninsertz!=zend-1cZiomarkrrZselz1.0endr)lenr	rr
rZcomparegetZmark_setrZbellZdeleterZseeZ
tag_remove)rrZnhistrr
Znprefixitemrrrr(sJ		"
			



(	z
History.fetchcCsm|j}t|dkrWy|jj|Wntk
rFYnX|jj|d|_d|_dS)z.Store Shell input statement into history list.N)striprr	remove
ValueErrorappendrr
)rsourcerrrstoreYs
	z
History.storeN)	__name__
__module____qualname____doc__rr
rrr"rrrrrs1r__main__)rz"idlelib.idle_test.test_idlehistory	verbosityrexitFN)r&Zidlelib.configHandlerrrr#Zunittestrrrrr<module>s
a