Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
U
i_ @ sD d Z ddlmZ G dd dZedkr@ddlmZ eddd d
dS )z9Implement Idle Shell history mechanism with History class )idleConfc @ s8 e Zd ZdZdd Zdd Zdd Zdd Zd
d ZdS )
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 <> event (default Alt-N).
history_prev - Bound to <> event (default Alt-P).
c C sL || _ g | _d| _d| _tddddd| _|d| j |d| j dS ) ad Initialize 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).
Nmainr cyclic boolz<>z<>)
texthistoryprefixpointerr Z GetOptionr bindhistory_prevhistory_next)selfr r ./opt/python38/lib/python3.8/idlelib/history.py__init__ s zHistory.__init__c C s | j dd dS )z4Fetch later statement; start with ealiest if cyclic.Freversebreakfetchr eventr r r r s zHistory.history_nextc C s | j dd dS )z0Fetch earlier statement; start with most recent.Tr r r r r r r r
$ s zHistory.history_prevc C s t | j}| j}| j}|dk rd|dk rd| jdddsN| jdd| j| krdd }}| jdd |dkst|dkr| jdd}|r|}n| jrd}n| j dS t |}||rdnd7 }|dk s||kr(| j | js|dk rdS | jdd|kr| j
dd | jd| d }}qp| j| }|d| |krt ||kr| j
dd | jd| qpq| jd | j
d d
d || _|| _dS )a+ Fetch statement 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-1cZiomarkr r Zselz1.0end)lenr r r
r ZcomparegetZmark_setr Zbelldeleter ZseeZ
tag_remove)r r Znhistr r
Znprefixitemr r r r ) sJ
z
History.fetchc C sV | }t|dkrFz| j| W n tk
r8 Y nX | j| d| _d| _dS )z.Store Shell input statement into history list. N)stripr r remove
ValueErrorappendr r
)r sourcer r r storeZ s z
History.storeN) __name__
__module____qualname____doc__r r r
r r' r r r r r s 1r __main__)r zidlelib.idle_test.test_historyr! F) verbosityexitN)r+ Zidlelib.configr r r( Zunittestr r r r r s
b