b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / idlelib /
Filename/usr/lib64/python2.6/idlelib/AutoComplete.pyo
Size7.83 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:41
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc
@sådZddkZddkZddkZddklZeieieidZ eieidZ
e dd �\Z Z
ddklZdd klZddkZeiZeioeei7Znd
d
d ��YZdS(sÖAutoComplete.py - An IDLE extension for automatically completing names.

This extension can complete either attribute names of file names. It can pop
a window with all available names, for the user to select from.
iÿÿÿÿN(tidleConfs._~#$:-t_ii(tAutoCompleteWindow(t HyperParsert AutoCompletecBs§eZddgfgZeiddddddd �Zdd
�Zd �Zdd �Z d
�Z
d�Z d�Z d�Z
d�Zdd�Zd�Zd�ZRS(teditsShow Completionss<<force-open-completions>>t
extensionsRt popupwaitttypetinttdefaulticCsF||_|djodS|i|_d|_d|_d|_dS(N(teditwintNonettexttautocompletewindowt_delayed_completion_idt_delayed_completion_index(tselfR ((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyt__init__)s 
   cCsti|i�S(N(RR
(R((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyt_make_autocomplete_window6scCs(|io|ii�d|_ndS(N(Rt hide_windowR (Rtevent((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyt_remove_autocomplete_window9s

cCs|ittt�dS(sqHappens when the user really wants to open a completion list, even
if a function call is needed.
N(topen_completionstTruetFalse(RR((s,/usr/lib64/python2.6/idlelib/AutoComplete.pytforce_open_completions_event>scCsd|iid�}|djo|itttt�n(|tjo|itttt�ndS(s¦Happens when it would be nice to open a completion list, but not
really necessary, for example after an dot, so function
calls won't be made.
s insert-1ct.N(R
tgett_open_completions_laterRtCOMPLETE_ATTRIBUTEStSEPStCOMPLETE_FILES(RRtlastchar((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyttry_open_completions_eventDs
 
cCspt|d�o|iodS|io"|ii�o|ii�dS|ittt�}|odSdS(s¥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)
tmc_stateNtbreak(thasattrR#Rt is_activetcompleteRRR(RRtopened((s,/usr/lib64/python2.6/idlelib/AutoComplete.pytautocomplete_eventQs
cGsa|iid�|_|idj o|ii|i�n|ii|i|i|�|_dS(Ntinsert( R
tindexRRR t after_canceltafterRt_delayed_open_completions(Rtargs((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyRas
cGs;d|_|iid�|ijodS|i|�dS(NR*(R RR
R+RR(RR/((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyR.is c Cs�|idj o |ii|i�d|_nt|id�}|iidd�}t|�}}|i�o©| p
|t jo�|i
�t }x+|o#||dt jo|d8}q�W|||!} |}x/|o'||dt t jo|d8}qÝW|||!}
nò|i
�oà| p
|tjoË|i
�t}x+|o#||dtjo|d8}qRW|||!} |oo||ddjoZ|idt|�|d�|i�}
|
p| o|
id�djodSqd }
ndS|o|
o
| odS|i|
|�} | d
pdS|i�|_|ii| dt| �|||�tS( sXFind 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.
R*sinsert linestartiRs
insert-%dct(iÿÿÿÿNti(RR R
R,RR Rtlent is_in_stringR RtFILENAME_CHARSRt
is_in_codeRtID_CHARSt set_indextget_expressiontfindtfetch_completionsRRt show_windowR( Rt evalfuncsR't userWantsWintmodethptcurlinetitjt
comp_startt comp_whatt
comp_lists((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyRosZ
"

 "

  
  
c
Csgy|iiiii}Wn
d }nX|o|idd||fh�S|tjoD|djo�ti i
�}|i ti i �t
d|�}|i�d|jot
d|�}|i�q�g}|D]"}|d djo ||q×q×~}qHy�|i|�} t| �}|i�d|jo| i}|i�n7g}
|D]"}|d djo |
|q]q]~
}WqHggfSXn«|tjo�|djo
d}nyetii|�} ti| �}|i�g} |D]"}|d djo | |qûqû~ }WqHtj
oggfSXn|p
|}n||fSd S(
sOReturn 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.
texectget_the_completion_listR1sdir()t__all__iRRN(R tflisttpyshelltinterptrpccltR t
remotecallRt__main__t__dict__tcopytupdatet __builtins__tevaltsortt
get_entitytdirRHR tostpatht
expandusertlistdirtOSError(
RtwhatR>RLt namespacetbigltsmalllt_[1]tstentityt_[2]t expandedpatht_[3]((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyR:¦sP 
 



: 

 :



:
cCs,tii�}|iti�t||�S(sALookup name in a namespace spanning sys.modules and __main.dict__(tsystmodulesRPRQRNRORS(RtnameR]((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyRUás(sShow Completionss<<force-open-completions>>N(t__name__t
__module__tmenudefsRt GetOptionRR RRRRR"R)RR.RR:RU(((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyRs 
  
   7 ;i((t__doc__RWRftstringtidlelib.configHandlerRt
ascii_letterstdigitstcurdirR4R6trangeRR tidlelibRtidlelib.HyperParserRRNtsepRtaltsepR(((s,/usr/lib64/python2.6/idlelib/AutoComplete.pyt<module>s