[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.144.21.237: ~ $


���]M2�@s�ddlZddlmZddlmZeejejd�Zeejd�Z	dd�e
d�D�Zdd�e
d�D�ZGd	d
�d
�Z
edkr�ddlZejdd
d�dS)�N)�	iskeyword)�PyParse�_cCs"g|]}t|�tk�qS�)�chr�_ASCII_ID_CHARS)�.0�xrr�0/opt/alt/python35/lib64/python3.5/HyperParser.py�
<listcomp>s	r�cCs"g|]}t|�tk�qSr)r�_ASCII_ID_FIRST_CHARS)rr	rrr
rs	c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
dd�Zed
ddh�Z	e
dd��ZdZdd�Z
dS)�HyperParserc
s�|�_|j�_}tj|j|j�}dd�}||j|��}|jsx�|jD]�}t	||d�}t
|�d}	d|}
|j|j|	|
�d�|j
|j|	��}|dk	s�|dkrePqeW|j|p�d�n_|jd|�}|r%|d}	nd	}	d|}
|j|j|	|
�d�|jd�|jdd
��_|
�_|j��_�fdd�tt�j��D��_�j|�dS)NcSstt|��S)N)�int�float)�indexrrr
�
index2line#sz(HyperParser.__init__.<locals>.index2line�z.0z%d.endz 
rZconsolez1.0�csBg|]8}|dko;�j|d�j|ddk�qS)rr)�
bracketing)r�i)�selfrr
rLs	z(HyperParser.__init__.<locals>.<listcomp>���)�editwin�textrZParserZindentwidthZtabwidthrZcontext_use_ps1Znum_context_lines�max�reprZset_str�getZfind_good_parse_startZ_build_char_in_string_funcZset_loZ
tag_prevrange�str�rawtext�stopatindexZget_last_stmt_bracketingr�range�len�isopener�	set_index)
rrrr�parserr�lno�contextZstartatZstartatindexr Zbod�rr)rr
�__init__s:		



	zHyperParser.__init__cCst|j�t|jj||j��}|dkrGtd|��||_d|_xP|jt|j�dkr�|j|jdd|jkr�|jd7_q\W|jt|j�dkr
|j|jdd|jkr
|j	|jdr
|jd7_dS)Nrz(Index %s precedes the analyzed statementr)
r"rrrr �
ValueError�indexinrawtext�indexbracketrr#)rrr+rrr
r$Rs
		!!zHyperParser.set_indexcCs/|j|jo.|j|j|jddkS)Nr�"�')r-r.)r#r,rr)rrrr
�is_in_stringgszHyperParser.is_in_stringcCs0|j|jp/|j|j|jddkS)Nr�#r-r.)r0r-r.)r#r,rr)rrrr
�
is_in_codeoszHyperParser.is_in_codez([{FcCs�|j|jd}|j}x{|j|sc|j|j|d|ksc|j|d|kr�|d8}|dkr}dSt||j|d�}q W|jd}x:|t|j�kr�|j|d|kr�|d7}q�W|jjd|jt|j�|j|df�}|t|j�ksQ|j|dt|j�krg|r[dS|j}n;|jjd|jt|j�|j|ddf�}||fS)Nrrz%s-%dc)	rr,r#r�minr"rrr )rZopenersZ	mustcloseZbracketinglevelZbefore�afterZbeforeindexZ
afterindexrrr
�get_surrounding_bracketsus0	

+ 		)z$HyperParser.get_surrounding_brackets�True�False�NonecCs�t}|}xL||krZt||d�dkrZ|t||d�rZ|d8}qW||krMt||d�dkrMx<|d|kr�d||d|�j�r�|d8}q�W|d|kr�d||d|�j�r�|d8}|d|kr0d||d|�j�r0|d8}|||�j�sqdSn$||krqtt||�sqdS||kr�t|||��r�|||�|jkr�dS||S)Nrr��arr)�_IS_ASCII_ID_CHAR�ord�isidentifier�_IS_ASCII_ID_FIRST_CHARr�_ID_KEYWORDS)�clsr�limit�posZis_ascii_id_charrrrr
�_eat_identifier�s.&1.
.
zHyperParser._eat_identifierz 	
\c
Csk|j�std��|j}|j}|j}||d}|j}|}d}xx�||kr�||d|jkr�|d8}q\|r�||kr�||ddkr�|d8}d}q\||kr'|dkr'|||dddkr'|d8}||d}||dd}q\Pq\W|s3P|j|||�}|rg||}|}d}qY||krU||d}	x2|dkr�||dd|	kr�|d8}q�W||d|kr�P||d}|d8}||d}|}||d	kr
qV||d
krQx.|dkrJ||ddkrJ|d8}qW|}PqYPqYW|||j�S)Nz>get_expression should only be calledif index is inside a code.rTr�.r0rFz([z'"ZrRbBuU)r1r*rrr,r+�_whitespace_charsrB)
rrrZ
brck_indexZ
brck_limitrAZlast_identifier_posZ
postdot_phase�ret�levelrrr
�get_expression�sb				#
 
	

	'
#zHyperParser.get_expressionN)�__name__�
__module__�__qualname__r)r$r/r1r4�	frozensetr>�classmethodrBrDrGrrrr
rs7,:r�__main__z"idlelib.idle_test.test_hyperparser�	verbosityr)�string�keywordrZidlelibrrK�
ascii_letters�digitsrr
r!r:r=rrHZunittest�mainrrrr
�<module>s�

Filemanager

Name Type Size Permission Actions
AutoComplete.cpython-35.opt-1.pyc File 7.51 KB 0644
AutoComplete.cpython-35.opt-2.pyc File 5.85 KB 0644
AutoComplete.cpython-35.pyc File 7.51 KB 0644
AutoCompleteWindow.cpython-35.opt-1.pyc File 11.19 KB 0644
AutoCompleteWindow.cpython-35.opt-2.pyc File 10.46 KB 0644
AutoCompleteWindow.cpython-35.pyc File 11.25 KB 0644
AutoExpand.cpython-35.opt-1.pyc File 3.09 KB 0644
AutoExpand.cpython-35.opt-2.pyc File 2.32 KB 0644
AutoExpand.cpython-35.pyc File 3.09 KB 0644
Bindings.cpython-35.opt-1.pyc File 3.15 KB 0644
Bindings.cpython-35.opt-2.pyc File 2.68 KB 0644
Bindings.cpython-35.pyc File 3.15 KB 0644
CallTipWindow.cpython-35.opt-1.pyc File 5.24 KB 0644
CallTipWindow.cpython-35.opt-2.pyc File 4.94 KB 0644
CallTipWindow.cpython-35.pyc File 5.24 KB 0644
CallTips.cpython-35.opt-1.pyc File 5.78 KB 0644
CallTips.cpython-35.opt-2.pyc File 4.18 KB 0644
CallTips.cpython-35.pyc File 5.78 KB 0644
ClassBrowser.cpython-35.opt-1.pyc File 8.35 KB 0644
ClassBrowser.cpython-35.opt-2.pyc File 7.87 KB 0644
ClassBrowser.cpython-35.pyc File 8.35 KB 0644
CodeContext.cpython-35.opt-1.pyc File 5.98 KB 0644
CodeContext.cpython-35.opt-2.pyc File 4.87 KB 0644
CodeContext.cpython-35.pyc File 6.02 KB 0644
ColorDelegator.cpython-35.opt-1.pyc File 8.37 KB 0644
ColorDelegator.cpython-35.opt-2.pyc File 8.21 KB 0644
ColorDelegator.cpython-35.pyc File 8.37 KB 0644
Debugger.cpython-35.opt-1.pyc File 15.21 KB 0644
Debugger.cpython-35.opt-2.pyc File 15.06 KB 0644
Debugger.cpython-35.pyc File 15.21 KB 0644
Delegator.cpython-35.opt-1.pyc File 1.31 KB 0644
Delegator.cpython-35.opt-2.pyc File 1.21 KB 0644
Delegator.cpython-35.pyc File 1.31 KB 0644
EditorWindow.cpython-35.opt-1.pyc File 50.8 KB 0644
EditorWindow.cpython-35.opt-2.pyc File 49.55 KB 0644
EditorWindow.cpython-35.pyc File 50.9 KB 0644
FileList.cpython-35.opt-1.pyc File 3.5 KB 0644
FileList.cpython-35.opt-2.pyc File 3.49 KB 0644
FileList.cpython-35.pyc File 3.53 KB 0644
FormatParagraph.cpython-35.opt-1.pyc File 6.21 KB 0644
FormatParagraph.cpython-35.opt-2.pyc File 4.36 KB 0644
FormatParagraph.cpython-35.pyc File 6.21 KB 0644
GrepDialog.cpython-35.opt-1.pyc File 5.51 KB 0644
GrepDialog.cpython-35.opt-2.pyc File 5.5 KB 0644
GrepDialog.cpython-35.pyc File 5.51 KB 0644
HyperParser.cpython-35.opt-1.pyc File 7.23 KB 0644
HyperParser.cpython-35.opt-2.pyc File 5.94 KB 0644
HyperParser.cpython-35.pyc File 7.23 KB 0644
IOBinding.cpython-35.opt-1.pyc File 14.82 KB 0644
IOBinding.cpython-35.opt-2.pyc File 14.4 KB 0644
IOBinding.cpython-35.pyc File 14.82 KB 0644
IdleHistory.cpython-35.opt-1.pyc File 3.59 KB 0644
IdleHistory.cpython-35.opt-2.pyc File 2.38 KB 0644
IdleHistory.cpython-35.pyc File 3.59 KB 0644
MultiCall.cpython-35.opt-1.pyc File 16.09 KB 0644
MultiCall.cpython-35.opt-2.pyc File 13.77 KB 0644
MultiCall.cpython-35.pyc File 16.15 KB 0644
MultiStatusBar.cpython-35.opt-1.pyc File 1.89 KB 0644
MultiStatusBar.cpython-35.opt-2.pyc File 1.88 KB 0644
MultiStatusBar.cpython-35.pyc File 1.89 KB 0644
ObjectBrowser.cpython-35.opt-1.pyc File 5.38 KB 0644
ObjectBrowser.cpython-35.opt-2.pyc File 5.38 KB 0644
ObjectBrowser.cpython-35.pyc File 5.38 KB 0644
OutputWindow.cpython-35.opt-1.pyc File 4.42 KB 0644
OutputWindow.cpython-35.opt-2.pyc File 4.24 KB 0644
OutputWindow.cpython-35.pyc File 4.42 KB 0644
ParenMatch.cpython-35.opt-1.pyc File 6.3 KB 0644
ParenMatch.cpython-35.opt-2.pyc File 4.9 KB 0644
ParenMatch.cpython-35.pyc File 6.3 KB 0644
PathBrowser.cpython-35.opt-1.pyc File 4.01 KB 0644
PathBrowser.cpython-35.opt-2.pyc File 3.86 KB 0644
PathBrowser.cpython-35.pyc File 4.01 KB 0644
Percolator.cpython-35.opt-1.pyc File 3.82 KB 0644
Percolator.cpython-35.opt-2.pyc File 3.81 KB 0644
Percolator.cpython-35.pyc File 3.99 KB 0644
PyParse.cpython-35.opt-1.pyc File 10.71 KB 0644
PyParse.cpython-35.opt-2.pyc File 9.85 KB 0644
PyParse.cpython-35.pyc File 11.14 KB 0644
PyShell.cpython-35.opt-1.pyc File 47 KB 0644
PyShell.cpython-35.opt-2.pyc File 44.47 KB 0644
PyShell.cpython-35.pyc File 47.13 KB 0644
RemoteDebugger.cpython-35.opt-1.pyc File 14.17 KB 0644
RemoteDebugger.cpython-35.opt-2.pyc File 11.83 KB 0644
RemoteDebugger.cpython-35.pyc File 14.31 KB 0644
RemoteObjectBrowser.cpython-35.opt-1.pyc File 1.96 KB 0644
RemoteObjectBrowser.cpython-35.opt-2.pyc File 1.95 KB 0644
RemoteObjectBrowser.cpython-35.pyc File 1.96 KB 0644
ReplaceDialog.cpython-35.opt-1.pyc File 7.47 KB 0644
ReplaceDialog.cpython-35.opt-2.pyc File 6.8 KB 0644
ReplaceDialog.cpython-35.pyc File 7.47 KB 0644
RstripExtension.cpython-35.opt-1.pyc File 1.32 KB 0644
RstripExtension.cpython-35.opt-2.pyc File 1.24 KB 0644
RstripExtension.cpython-35.pyc File 1.32 KB 0644
ScriptBinding.cpython-35.opt-1.pyc File 6.9 KB 0644
ScriptBinding.cpython-35.opt-2.pyc File 5.54 KB 0644
ScriptBinding.cpython-35.pyc File 6.9 KB 0644
ScrolledList.cpython-35.opt-1.pyc File 5.62 KB 0644
ScrolledList.cpython-35.opt-2.pyc File 5.62 KB 0644
ScrolledList.cpython-35.pyc File 5.62 KB 0644
SearchDialog.cpython-35.opt-1.pyc File 3.69 KB 0644
SearchDialog.cpython-35.opt-2.pyc File 3.44 KB 0644
SearchDialog.cpython-35.pyc File 3.69 KB 0644
SearchDialogBase.cpython-35.opt-1.pyc File 7.51 KB 0644
SearchDialogBase.cpython-35.opt-2.pyc File 4.87 KB 0644
SearchDialogBase.cpython-35.pyc File 7.51 KB 0644
SearchEngine.cpython-35.opt-1.pyc File 7.24 KB 0644
SearchEngine.cpython-35.opt-2.pyc File 5.62 KB 0644
SearchEngine.cpython-35.pyc File 7.24 KB 0644
StackViewer.cpython-35.opt-1.pyc File 5.46 KB 0644
StackViewer.cpython-35.opt-2.pyc File 5.45 KB 0644
StackViewer.cpython-35.pyc File 5.46 KB 0644
ToolTip.cpython-35.opt-1.pyc File 3.95 KB 0644
ToolTip.cpython-35.opt-2.pyc File 3.94 KB 0644
ToolTip.cpython-35.pyc File 3.95 KB 0644
TreeWidget.cpython-35.opt-1.pyc File 15.25 KB 0644
TreeWidget.cpython-35.opt-2.pyc File 14.49 KB 0644
TreeWidget.cpython-35.pyc File 15.25 KB 0644
UndoDelegator.cpython-35.opt-1.pyc File 11.61 KB 0644
UndoDelegator.cpython-35.opt-2.pyc File 11.6 KB 0644
UndoDelegator.cpython-35.pyc File 11.61 KB 0644
WidgetRedirector.cpython-35.opt-1.pyc File 6.95 KB 0644
WidgetRedirector.cpython-35.opt-2.pyc File 3.58 KB 0644
WidgetRedirector.cpython-35.pyc File 6.95 KB 0644
WindowList.cpython-35.opt-1.pyc File 3.16 KB 0644
WindowList.cpython-35.opt-2.pyc File 3.15 KB 0644
WindowList.cpython-35.pyc File 3.16 KB 0644
ZoomHeight.cpython-35.opt-1.pyc File 1.37 KB 0644
ZoomHeight.cpython-35.opt-2.pyc File 1.36 KB 0644
ZoomHeight.cpython-35.pyc File 1.37 KB 0644
__init__.cpython-35.opt-1.pyc File 452 B 0644
__init__.cpython-35.opt-2.pyc File 141 B 0644
__init__.cpython-35.pyc File 452 B 0644
__main__.cpython-35.opt-1.pyc File 279 B 0644
__main__.cpython-35.opt-2.pyc File 198 B 0644
__main__.cpython-35.pyc File 279 B 0644
aboutDialog.cpython-35.opt-1.pyc File 5.93 KB 0644
aboutDialog.cpython-35.opt-2.pyc File 5.77 KB 0644
aboutDialog.cpython-35.pyc File 5.93 KB 0644
configDialog.cpython-35.opt-1.pyc File 48.17 KB 0644
configDialog.cpython-35.opt-2.pyc File 45.48 KB 0644
configDialog.cpython-35.pyc File 48.17 KB 0644
configHandler.cpython-35.opt-1.pyc File 26.25 KB 0644
configHandler.cpython-35.opt-2.pyc File 18.24 KB 0644
configHandler.cpython-35.pyc File 26.25 KB 0644
configHelpSourceEdit.cpython-35.opt-1.pyc File 5.77 KB 0644
configHelpSourceEdit.cpython-35.opt-2.pyc File 5.27 KB 0644
configHelpSourceEdit.cpython-35.pyc File 5.77 KB 0644
configSectionNameDialog.cpython-35.opt-1.pyc File 3.84 KB 0644
configSectionNameDialog.cpython-35.opt-2.pyc File 3.22 KB 0644
configSectionNameDialog.cpython-35.pyc File 3.84 KB 0644
dynOptionMenuWidget.cpython-35.opt-1.pyc File 2.37 KB 0644
dynOptionMenuWidget.cpython-35.opt-2.pyc File 1.99 KB 0644
dynOptionMenuWidget.cpython-35.pyc File 2.37 KB 0644
help.cpython-35.opt-1.pyc File 10.72 KB 0644
help.cpython-35.opt-2.pyc File 8.04 KB 0644
help.cpython-35.pyc File 10.72 KB 0644
idle.cpython-35.opt-1.pyc File 372 B 0644
idle.cpython-35.opt-2.pyc File 364 B 0644
idle.cpython-35.pyc File 372 B 0644
idlever.cpython-35.opt-1.pyc File 551 B 0644
idlever.cpython-35.opt-2.pyc File 320 B 0644
idlever.cpython-35.pyc File 551 B 0644
keybindingDialog.cpython-35.opt-1.pyc File 10.71 KB 0644
keybindingDialog.cpython-35.opt-2.pyc File 9.77 KB 0644
keybindingDialog.cpython-35.pyc File 10.71 KB 0644
macosxSupport.cpython-35.opt-1.pyc File 7 KB 0644
macosxSupport.cpython-35.opt-2.pyc File 5.13 KB 0644
macosxSupport.cpython-35.pyc File 7.11 KB 0644
rpc.cpython-35.opt-1.pyc File 20.34 KB 0644
rpc.cpython-35.opt-2.pyc File 17.03 KB 0644
rpc.cpython-35.pyc File 20.45 KB 0644
run.cpython-35.opt-1.pyc File 12.44 KB 0644
run.cpython-35.opt-2.pyc File 10.56 KB 0644
run.cpython-35.pyc File 12.49 KB 0644
tabbedpages.cpython-35.opt-1.pyc File 16.68 KB 0644
tabbedpages.cpython-35.opt-2.pyc File 11.79 KB 0644
tabbedpages.cpython-35.pyc File 16.68 KB 0644
textView.cpython-35.opt-1.pyc File 3.38 KB 0644
textView.cpython-35.opt-2.pyc File 2.95 KB 0644
textView.cpython-35.pyc File 3.38 KB 0644