[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.227.140.153: ~ $


��Yf�#�@s�dZddlZddlZddlZddlmZejejdZe	dd�\Z
Zddlm
Z
ddlmZddlZejZejr�eej7ZGd	d
�d
�Zedkr�ddlmZed
dd�dS)z�AutoComplete.py - An IDLE extension for automatically completing names.

This extension can complete either attribute names or file names. It can pop
a window with all available names, for the user to select from.
�N)�idleConf�_��)�AutoCompleteWindow)�HyperParserc@s�eZdZdd!gfgZejddddddd	�Zd
dd�Zd
d�Zd
dd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zd
dd�Zdd�Zdd �Zd
S)"�AutoCompleteZedit�Show Completions�<<force-open-completions>>�
extensions�	popupwait�type�int�defaultrNcCsD||_|dkrdS|j|_d|_d|_d|_dS)N)�editwin�text�autocompletewindow�_delayed_completion_id�_delayed_completion_index)�selfr�r�9/opt/alt/python35/lib64/python3.5/idlelib/AutoComplete.py�__init__&s			zAutoComplete.__init__cCstj|j�S)N)rr)rrrr�_make_autocomplete_window3sz&AutoComplete._make_autocomplete_windowcCs#|jr|jj�d|_dS)N)rZhide_window)r�eventrrr�_remove_autocomplete_window6s	
z(AutoComplete._remove_autocomplete_windowcCs|jddd�dS)zqHappens when the user really wants to open a completion list, even
        if a function call is needed.
        TFN)�open_completions)rrrrr�force_open_completions_event;sz)AutoComplete.force_open_completions_eventcCs]|jjd�}|dkr7|jdddt�n"|tkrY|jdddt�dS)z�Happens when it would be nice to open a completion list, but not
        really necessary, for example after a dot, so function
        calls won't be made.
        z	insert-1c�.FN)r�get�_open_completions_later�COMPLETE_ATTRIBUTES�SEPS�COMPLETE_FILES)rrZlastcharrrr�try_open_completions_eventAs
z'AutoComplete.try_open_completions_eventcCsht|d�r|jrdS|jrE|jj�rE|jj�dS|jddd�}|rddSdS)z�Happens when the user wants to complete his word, and if necessary,
        open a completion list after that (if there is more than one
        completion)
        �mc_stateN�breakFT)�hasattrr%rZ	is_active�completer)rrZopenedrrr�autocomplete_eventNs
zAutoComplete.autocomplete_eventcGs\|jjd�|_|jdk	r7|jj|j�|jj|j|j|�|_dS)N�insert)r�indexrr�after_cancel�afterr�_delayed_open_completions)r�argsrrrr ^s
z$AutoComplete._open_completions_latercGs9d|_|jjd�|jkr(dS|j|�dS)Nr*)rrr+rr)rr/rrrr.fs	z&AutoComplete._delayed_open_completionscCs�|jdk	r+|jj|j�d|_t|jd�}|jjdd�}t|�}}|j�r|s�|tkr|j	�t}x,|r�||ddt
kr�|d8}q�W|||�}	|}x(|r||ddkr|d8}q�W|||�}
n|j�r|s3|tkr|j	�t}xB|r�||dt
kszt||d�dkr�|d8}qFW|||�}	|r||ddkr|jdt|�|d�|j�}
|
s|r
|
jd	�dkr
dSqd
}
ndS|r,|
r,|	r,dS|j|
|�}|dsLdS|j�|_|jj|dt|	�|||�S)
aXFind the completions and create the AutoCompleteWindow.
        Return True if successful (no syntax error or so found).
        if complete is True, then if there's nothing to complete and no
        start of completion, won't open completions and return False.
        If mode is given, will open a completion list only in this mode.
        Nr*zinsert linestartrz'"�rz
insert-%dc�(�r���)rrr,rrr�lenZis_in_stringr#rr"Z
is_in_coder!�ID_CHARS�ordZ	set_indexZget_expression�find�fetch_completionsrrZshow_window)rZ	evalfuncsr(ZuserWantsWin�modeZhpZcurline�i�jZ
comp_startZ	comp_whatZ
comp_listsrrrrlsN	
!
7	
	zAutoComplete.open_completionsc	Cs�y|jjjjj}Wnd}YnX|rL|jdd||fi�S|tkrK|dkr�tjj	�}|j
tjj�td|�}|j
�d|kr�ttd|��}qHdd�|D�}q�yZ|j|�}t|�}|j
�d|krt|j�}nd	d�|D�}Wq�ggfSYq�Xn|tkr�|dkrid
}yBtjj|�}tj|�}|j
�dd�|D�}Wntk
r�ggfSYnX|s�|}||fSdS)aOReturn a pair of lists of completions for something. The first list
        is a sublist of the second. Both are sorted.

        If there is a Python subprocess, get the comp. list there.  Otherwise,
        either fetch_completions() is running in the subprocess itself or it
        was called in an IDLE EditorWindow before any script had been run.

        The subprocess environment is that of the most recently run script.  If
        two unrelated modules are being edited some calltips in the current
        module may be inoperative if the module was not the last to run.
        N�execZget_the_completion_listr2zdir()�__all__cSs,g|]"}|dd�dkr|�qS)Nrrr)�.0�srrr�
<listcomp>�s	z2AutoComplete.fetch_completions.<locals>.<listcomp>cSs,g|]"}|dd�dkr|�qS)Nrrr)r>r?rrrr@�s	rcSs,g|]"}|dd�dkr|�qS)Nrrr)r>r?rrrr@�s	)rZflistZpyshellZinterp�rpccltZ
remotecallr!�__main__�__dict__�copy�update�__builtins__�eval�sort�sorted�
get_entity�dirr=r#�os�path�
expanduser�listdir�OSError)	rZwhatr9rA�	namespaceZbiglZsmalllZentityZexpandedpathrrrr8�sL



zAutoComplete.fetch_completionscCs,tjj�}|jtj�t||�S)zALookup name in a namespace spanning sys.modules and __main.dict__)�sys�modulesrDrErBrCrG)r�namerQrrrrJ�szAutoComplete.get_entity)r	r
)�__name__�
__module__�__qualname__ZmenudefsrZ	GetOptionrrrrrr$r)r r.rr8rJrrrrrs

;9rrB)�mainz#idlelib.idle_test.test_autocomplete�	verbosity�)�__doc__rLrR�stringZidlelib.configHandlerrZ
ascii_lettersZdigitsr5�ranger!r#ZidlelibrZidlelib.HyperParserrrB�sepr"�altseprrUZunittestrXrrrr�<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