OwlCyberSecurity - MANAGER
Edit File: AutoComplete.pyc
� {fc�����������@���s��d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�m�Z�e�j�e�j�e�j�d�Z �e�j�e�j�d�Z �e�d�d���\�Z�Z �d�d�l�m�Z�d�d �l�m�Z�d�d�l�Z�e�j�Z�e�j�r��e�e�j�7Z�n��d �d�d�������YZ�e�d�k�rd�d �l�m�Z�e�d�d�d��n��d�S(���s����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. i����N(���t���idleConfs���._~#$:-t���_i���i���(���t���AutoCompleteWindow(���t���HyperParsert���AutoCompletec�����������B���s����e��Z�d��d�g�f�g�Z�e�j�d�d�d�d�d�d�d ��Z�d�d ���Z�d����Z�d�d���Z �d ����Z �d����Z�d����Z�d����Z �d����Z�d�d���Z�d����Z�d����Z�RS(���t���edits���Show Completionss���<<force-open-completions>>t ���extensionsR���t ���popupwaitt���typet���intt���defaulti����c���������C���sD���|�|��_��|�d��k�r�d��S|�j�|��_�d��|��_�d��|��_�d��|��_�d��S(���N(���t���editwint���Nonet���textt���autocompletewindowt���_delayed_completion_idt���_delayed_completion_index(���t���selfR���(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���__init__)���s���� c���������C���s���t��j��|��j���S(���N(���R���R ���(���R���(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���_make_autocomplete_window6���s����c���������C���s&���|��j��r"�|��j��j����d��|��_��n��d��S(���N(���R���t���hide_windowR���(���R���t���event(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���_remove_autocomplete_window9���s���� c���������C���s���|��j��t�t�t���d�S(���sq���Happens when the user really wants to open a completion list, even if a function call is needed. N(���t���open_completionst���Truet���False(���R���R���(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���force_open_completions_event>���s����c���������C���s`���|��j��j�d���}�|�d�k�r7�|��j�t�t�t�t���n%�|�t�k�r\�|��j�t�t�t�t���n��d�S(���s����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. s ���insert-1ct���.N(���R ���t���gett���_open_completions_laterR���t���COMPLETE_ATTRIBUTESt���SEPSt���COMPLETE_FILES(���R���R���t���lastchar(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���try_open_completions_eventD���s���� c���������C���sh���t��|�d���r�|�j�r�d�S|��j�rE�|��j�j����rE�|��j�j����d�S|��j�t�t�t���}�|�rd�d�Sd�S(���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) t���mc_stateNt���break(���t���hasattrR#���R���t ���is_activet���completeR���R���R���(���R���R���t���opened(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���autocomplete_eventQ���s���� c���������G���s_���|��j��j�d���|��_�|��j�d��k �r:�|��j��j�|��j���n��|��j��j�|��j�|��j�|���|��_�d��S(���Nt���insert( ���R ���t���indexR���R���R���t���after_cancelt���afterR���t���_delayed_open_completions(���R���t���args(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyR���a���s ����c���������G���s9���d��|��_�|��j�j�d���|��j�k�r(�d��S|��j�|����d��S(���NR*���(���R���R���R ���R+���R���R���(���R���R/���(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyR.���i���s���� c���������C���sb��|��j��d�k �r.�|��j�j�|��j����d�|��_��n��t�|��j�d���}�|��j�j�d�d���}�t�|���}�}�|�j����r|�s��|�t �k�r|��j ����t �}�x(�|�r��|�|�d�t�k�r��|�d�8}�q��W|�|�|�!} �|�}�x,�|�r�|�|�d�t�t�k�r�|�d�8}�q��W|�|�|�!} �n��|�j ����r�|�s0|�t�k�r�|��j ����t�}�x(�|�rj|�|�d�t�k�rj|�d�8}�qCW|�|�|�!} �|�r�|�|�d�d�k�r�|�j�d�t�|���|�d���|�j����} �| �s�|�r�| �j�d���d�k�r�d�Sq�d �} �n�d�S|�r| �r| �rd�S|��j�| �|���}�|�d �s,d�S|��j����|��_�|��j�j�|�d�t�| ���|�|�|���S(���sX��Find 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*���s���insert linestarti���R���s ���insert-%dct���(i����Nt����i����(���R���R���R ���R,���R���R���R���t���lent���is_in_stringR ���R���t���FILENAME_CHARSR���t ���is_in_codeR���t���ID_CHARSt ���set_indext���get_expressiont���findt���fetch_completionsR���R���t���show_window(���R���t ���evalfuncsR'���t���userWantsWint���modet���hpt���curlinet���it���jt ���comp_startt ���comp_whatt ���comp_lists(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyR���o���sN���� ! c��� ������C���s&��y�|��j��j�j�j�j�}�Wn �d �}�n�X|�rK�|�j�d�d�|�|�f�i����S|�t�k�rr|�d�k�r��t�j �j ����}�|�j�t�j�j ���t �d�|���}�|�j����d�|�k�r��t�t �d�|�����}�qog��|�D]�}�|�d� d�k�r��|�^�q��}�q yp�|��j�|���}�t�|���}�|�j����d�|�k�r4t�|�j���}�n)�g��|�D]�}�|�d� d�k�r;|�^�q;}�Wq g��g��f�SXn��|�t�k�r |�d�k�r�d�}�n��yX�t�j�j�|���} �t�j�| ���}�|�j����g��|�D]�}�|�d� d�k�r�|�^�q�}�Wq t�k �rg��g��f�SXn��|�s|�}�n��|�|�f�Sd �S( ���sO��Return 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. t���exect���get_the_completion_listR1���s���dir()t���__all__i���R���R���N(���R���t���flistt���pyshellt���interpt���rpccltR���t ���remotecallR���t���__main__t���__dict__t���copyt���updatet���__builtins__t���evalt���sortt���sortedt ���get_entityt���dirRH���R ���t���ost���patht ���expandusert���listdirt���OSError( ���R���t���whatR>���RL���t ���namespacet���biglt���smalllt���st���entityt���expandedpath(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyR:�������sL���� , - - c���������C���s,���t��j�j����}�|�j�t�j���t�|�|���S(���sA���Lookup name in a namespace spanning sys.modules and __main.dict__(���t���syst���modulesRP���RQ���RN���RO���RS���(���R���t���nameR^���(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyRV�������s����(���s���Show Completionss���<<force-open-completions>>N(���t���__name__t ���__module__t���menudefsR����t ���GetOptionR���R���R���R���R���R���R"���R)���R���R.���R���R:���RV���(����(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyR������s��� 4 9RN���(���t���mains#���idlelib.idle_test.test_autocompletet ���verbosityi���(����(���t���__doc__RX���Rd���t���stringt���idlelib.configHandlerR����t ���ascii_letterst���digitst���curdirR4���R6���t���rangeR���R ���t���idlelibR���t���idlelib.HyperParserR���RN���t���sepR���t���altsepR���Rg���t���unittestRk���(����(����(����s,���/usr/lib64/python2.7/idlelib/AutoComplete.pyt���<module>���s"��� �