SILENT KILLERPanel

Current Path: > > opt > alt > python37 > lib64 > python3.7 > > idlelib > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python37/lib64/python3.7//idlelib/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-37.opt-1.pyc File 513 bytes April 17 2024 17:36:09.
__init__.cpython-37.opt-2.pyc File 151 bytes April 17 2024 17:35:53.
__init__.cpython-37.pyc File 513 bytes April 17 2024 17:36:15.
__main__.cpython-37.opt-1.pyc File 274 bytes April 17 2024 17:36:09.
__main__.cpython-37.opt-2.pyc File 203 bytes April 17 2024 17:35:53.
__main__.cpython-37.pyc File 274 bytes April 17 2024 17:36:15.
autocomplete.cpython-37.opt-1.pyc File 6796 bytes April 17 2024 17:36:09.
autocomplete.cpython-37.opt-2.pyc File 5398 bytes April 17 2024 17:35:53.
autocomplete.cpython-37.pyc File 6796 bytes April 17 2024 17:36:15.
autocomplete_w.cpython-37.opt-1.pyc File 11032 bytes April 17 2024 17:36:09.
autocomplete_w.cpython-37.opt-2.pyc File 10274 bytes April 17 2024 17:35:53.
autocomplete_w.cpython-37.pyc File 11090 bytes April 17 2024 17:36:15.
autoexpand.cpython-37.opt-1.pyc File 2826 bytes April 17 2024 17:36:09.
autoexpand.cpython-37.opt-2.pyc File 2076 bytes April 17 2024 17:35:53.
autoexpand.cpython-37.pyc File 2826 bytes April 17 2024 17:36:15.
browser.cpython-37.opt-1.pyc File 9490 bytes April 17 2024 17:36:09.
browser.cpython-37.opt-2.pyc File 6823 bytes April 17 2024 17:35:53.
browser.cpython-37.pyc File 9490 bytes April 17 2024 17:36:15.
calltip.cpython-37.opt-1.pyc File 5572 bytes April 17 2024 17:36:09.
calltip.cpython-37.opt-2.pyc File 3951 bytes April 17 2024 17:35:53.
calltip.cpython-37.pyc File 5572 bytes April 17 2024 17:36:15.
calltip_w.cpython-37.opt-1.pyc File 6168 bytes April 17 2024 17:36:09.
calltip_w.cpython-37.opt-2.pyc File 5235 bytes April 17 2024 17:35:53.
calltip_w.cpython-37.pyc File 6168 bytes April 17 2024 17:36:15.
codecontext.cpython-37.opt-1.pyc File 8695 bytes April 17 2024 17:36:09.
codecontext.cpython-37.opt-2.pyc File 5700 bytes April 17 2024 17:35:53.
codecontext.cpython-37.pyc File 8730 bytes April 17 2024 17:36:15.
colorizer.cpython-37.opt-1.pyc File 10266 bytes April 17 2024 17:36:09.
colorizer.cpython-37.opt-2.pyc File 8172 bytes April 17 2024 17:35:53.
colorizer.cpython-37.pyc File 10266 bytes April 17 2024 17:36:15.
config.cpython-37.opt-1.pyc File 29872 bytes April 17 2024 17:36:09.
config.cpython-37.opt-2.pyc File 19952 bytes April 17 2024 17:35:53.
config.cpython-37.pyc File 29872 bytes April 17 2024 17:36:15.
config_key.cpython-37.opt-1.pyc File 11339 bytes April 17 2024 17:36:09.
config_key.cpython-37.opt-2.pyc File 9919 bytes April 17 2024 17:35:53.
config_key.cpython-37.pyc File 11339 bytes April 17 2024 17:36:15.
configdialog.cpython-37.opt-1.pyc File 78613 bytes April 17 2024 17:36:09.
configdialog.cpython-37.opt-2.pyc File 48456 bytes April 17 2024 17:35:53.
configdialog.cpython-37.pyc File 78613 bytes April 17 2024 17:36:15.
debugger.cpython-37.opt-1.pyc File 14219 bytes April 17 2024 17:36:09.
debugger.cpython-37.opt-2.pyc File 14068 bytes April 17 2024 17:35:53.
debugger.cpython-37.pyc File 14219 bytes April 17 2024 17:36:15.
debugger_r.cpython-37.opt-1.pyc File 13771 bytes April 17 2024 17:36:09.
debugger_r.cpython-37.opt-2.pyc File 11380 bytes April 17 2024 17:35:53.
debugger_r.cpython-37.pyc File 13897 bytes April 17 2024 17:36:15.
debugobj.cpython-37.opt-1.pyc File 5177 bytes April 17 2024 17:36:09.
debugobj.cpython-37.opt-2.pyc File 5177 bytes April 17 2024 17:35:53.
debugobj.cpython-37.pyc File 5177 bytes April 17 2024 17:36:15.
debugobj_r.cpython-37.opt-1.pyc File 2018 bytes April 17 2024 17:36:09.
debugobj_r.cpython-37.opt-2.pyc File 2018 bytes April 17 2024 17:35:53.
debugobj_r.cpython-37.pyc File 2018 bytes April 17 2024 17:36:15.
delegator.cpython-37.opt-1.pyc File 1280 bytes April 17 2024 17:36:09.
delegator.cpython-37.opt-2.pyc File 1180 bytes April 17 2024 17:35:53.
delegator.cpython-37.pyc File 1280 bytes April 17 2024 17:36:15.
dynoption.cpython-37.opt-1.pyc File 2291 bytes April 17 2024 17:36:09.
dynoption.cpython-37.opt-2.pyc File 1911 bytes April 17 2024 17:35:53.
dynoption.cpython-37.pyc File 2291 bytes April 17 2024 17:36:15.
editor.cpython-37.opt-1.pyc File 46605 bytes April 17 2024 17:36:09.
editor.cpython-37.opt-2.pyc File 44705 bytes April 17 2024 17:35:53.
editor.cpython-37.pyc File 46692 bytes April 17 2024 17:36:15.
filelist.cpython-37.opt-1.pyc File 3376 bytes April 17 2024 17:36:09.
filelist.cpython-37.opt-2.pyc File 3343 bytes April 17 2024 17:35:53.
filelist.cpython-37.pyc File 3402 bytes April 17 2024 17:36:15.
format.cpython-37.opt-1.pyc File 13440 bytes April 17 2024 17:36:09.
format.cpython-37.opt-2.pyc File 9717 bytes April 17 2024 17:35:53.
format.cpython-37.pyc File 13440 bytes April 17 2024 17:36:15.
grep.cpython-37.opt-1.pyc File 7791 bytes April 17 2024 17:36:09.
grep.cpython-37.opt-2.pyc File 5096 bytes April 17 2024 17:35:53.
grep.cpython-37.pyc File 7791 bytes April 17 2024 17:36:15.
help.cpython-37.opt-1.pyc File 10376 bytes April 17 2024 17:36:09.
help.cpython-37.opt-2.pyc File 7607 bytes April 17 2024 17:35:53.
help.cpython-37.pyc File 10418 bytes April 17 2024 17:36:15.
help_about.cpython-37.opt-1.pyc File 7337 bytes April 17 2024 17:36:09.
help_about.cpython-37.opt-2.pyc File 6215 bytes April 17 2024 17:35:53.
help_about.cpython-37.pyc File 7337 bytes April 17 2024 17:36:15.
history.cpython-37.opt-1.pyc File 3394 bytes April 17 2024 17:36:09.
history.cpython-37.opt-2.pyc File 2169 bytes April 17 2024 17:35:53.
history.cpython-37.pyc File 3394 bytes April 17 2024 17:36:15.
hyperparser.cpython-37.opt-1.pyc File 6749 bytes April 17 2024 17:36:09.
hyperparser.cpython-37.opt-2.pyc File 5442 bytes April 17 2024 17:35:53.
hyperparser.cpython-37.pyc File 6749 bytes April 17 2024 17:36:15.
idle.cpython-37.opt-1.pyc File 339 bytes April 17 2024 17:36:09.
idle.cpython-37.opt-2.pyc File 339 bytes April 17 2024 17:35:53.
idle.cpython-37.pyc File 339 bytes April 17 2024 17:36:15.
iomenu.cpython-37.opt-1.pyc File 13780 bytes April 17 2024 17:36:09.
iomenu.cpython-37.opt-2.pyc File 13312 bytes April 17 2024 17:35:53.
iomenu.cpython-37.pyc File 13780 bytes April 17 2024 17:36:15.
macosx.cpython-37.opt-1.pyc File 7594 bytes April 17 2024 17:36:09.
macosx.cpython-37.opt-2.pyc File 5412 bytes April 17 2024 17:35:53.
macosx.cpython-37.pyc File 7594 bytes April 17 2024 17:36:15.
mainmenu.cpython-37.opt-1.pyc File 3461 bytes April 17 2024 17:36:09.
mainmenu.cpython-37.opt-2.pyc File 2990 bytes April 17 2024 17:35:53.
mainmenu.cpython-37.pyc File 3461 bytes April 17 2024 17:36:15.
multicall.cpython-37.opt-1.pyc File 14937 bytes April 17 2024 17:36:09.
multicall.cpython-37.opt-2.pyc File 12572 bytes April 17 2024 17:35:53.
multicall.cpython-37.pyc File 14994 bytes April 17 2024 17:36:15.
outwin.cpython-37.opt-1.pyc File 6062 bytes April 17 2024 17:36:09.
outwin.cpython-37.opt-2.pyc File 4378 bytes April 17 2024 17:35:53.
outwin.cpython-37.pyc File 6062 bytes April 17 2024 17:36:15.
parenmatch.cpython-37.opt-1.pyc File 6334 bytes April 17 2024 17:36:09.
parenmatch.cpython-37.opt-2.pyc File 4788 bytes April 17 2024 17:35:53.
parenmatch.cpython-37.pyc File 6334 bytes April 17 2024 17:36:15.
pathbrowser.cpython-37.opt-1.pyc File 3743 bytes April 17 2024 17:36:09.
pathbrowser.cpython-37.opt-2.pyc File 3602 bytes April 17 2024 17:35:53.
pathbrowser.cpython-37.pyc File 3743 bytes April 17 2024 17:36:15.
percolator.cpython-37.opt-1.pyc File 3516 bytes April 17 2024 17:36:09.
percolator.cpython-37.opt-2.pyc File 3516 bytes April 17 2024 17:35:53.
percolator.cpython-37.pyc File 3654 bytes April 17 2024 17:36:15.
pyparse.cpython-37.opt-1.pyc File 11639 bytes April 17 2024 17:36:09.
pyparse.cpython-37.opt-2.pyc File 8060 bytes April 17 2024 17:35:53.
pyparse.cpython-37.pyc File 11988 bytes April 17 2024 17:36:15.
pyshell.cpython-37.opt-1.pyc File 42251 bytes April 17 2024 17:36:09.
pyshell.cpython-37.opt-2.pyc File 39523 bytes April 17 2024 17:35:53.
pyshell.cpython-37.pyc File 42381 bytes April 17 2024 17:36:15.
query.cpython-37.opt-1.pyc File 12815 bytes April 17 2024 17:36:09.
query.cpython-37.opt-2.pyc File 10093 bytes April 17 2024 17:35:53.
query.cpython-37.pyc File 12815 bytes April 17 2024 17:36:15.
redirector.cpython-37.opt-1.pyc File 6763 bytes April 17 2024 17:36:09.
redirector.cpython-37.opt-2.pyc File 3331 bytes April 17 2024 17:35:53.
redirector.cpython-37.pyc File 6763 bytes April 17 2024 17:36:15.
replace.cpython-37.opt-1.pyc File 9358 bytes April 17 2024 17:36:09.
replace.cpython-37.opt-2.pyc File 6516 bytes April 17 2024 17:35:53.
replace.cpython-37.pyc File 9358 bytes April 17 2024 17:36:15.
rpc.cpython-37.opt-1.pyc File 19604 bytes April 17 2024 17:36:09.
rpc.cpython-37.opt-2.pyc File 16058 bytes April 17 2024 17:35:53.
rpc.cpython-37.pyc File 19691 bytes April 17 2024 17:36:15.
run.cpython-37.opt-1.pyc File 17677 bytes April 17 2024 17:36:09.
run.cpython-37.opt-2.pyc File 15202 bytes April 17 2024 17:35:53.
run.cpython-37.pyc File 17725 bytes April 17 2024 17:36:15.
runscript.cpython-37.opt-1.pyc File 7070 bytes April 17 2024 17:36:09.
runscript.cpython-37.opt-2.pyc File 5836 bytes April 17 2024 17:35:53.
runscript.cpython-37.pyc File 7070 bytes April 17 2024 17:36:15.
scrolledlist.cpython-37.opt-1.pyc File 5403 bytes April 17 2024 17:36:09.
scrolledlist.cpython-37.opt-2.pyc File 5403 bytes April 17 2024 17:35:53.
scrolledlist.cpython-37.pyc File 5403 bytes April 17 2024 17:36:15.
search.cpython-37.opt-1.pyc File 5931 bytes April 17 2024 17:36:09.
search.cpython-37.opt-2.pyc File 3439 bytes April 17 2024 17:35:53.
search.cpython-37.pyc File 5931 bytes April 17 2024 17:36:15.
searchbase.cpython-37.opt-1.pyc File 8037 bytes April 17 2024 17:36:09.
searchbase.cpython-37.opt-2.pyc File 5277 bytes April 17 2024 17:35:53.
searchbase.cpython-37.pyc File 8037 bytes April 17 2024 17:36:15.
searchengine.cpython-37.opt-1.pyc File 6841 bytes April 17 2024 17:36:09.
searchengine.cpython-37.opt-2.pyc File 5191 bytes April 17 2024 17:35:53.
searchengine.cpython-37.pyc File 6841 bytes April 17 2024 17:36:15.
sidebar.cpython-37.opt-1.pyc File 10987 bytes April 17 2024 17:36:09.
sidebar.cpython-37.opt-2.pyc File 9539 bytes April 17 2024 17:35:53.
sidebar.cpython-37.pyc File 10987 bytes April 17 2024 17:36:15.
squeezer.cpython-37.opt-1.pyc File 9520 bytes April 17 2024 17:36:09.
squeezer.cpython-37.opt-2.pyc File 6333 bytes April 17 2024 17:35:53.
squeezer.cpython-37.pyc File 9557 bytes April 17 2024 17:36:15.
stackviewer.cpython-37.opt-1.pyc File 5054 bytes April 17 2024 17:36:09.
stackviewer.cpython-37.opt-2.pyc File 5054 bytes April 17 2024 17:35:53.
stackviewer.cpython-37.pyc File 5054 bytes April 17 2024 17:36:15.
statusbar.cpython-37.opt-1.pyc File 1949 bytes April 17 2024 17:36:09.
statusbar.cpython-37.opt-2.pyc File 1949 bytes April 17 2024 17:35:53.
statusbar.cpython-37.pyc File 1949 bytes April 17 2024 17:36:15.
textview.cpython-37.opt-1.pyc File 7065 bytes April 17 2024 17:36:09.
textview.cpython-37.opt-2.pyc File 4909 bytes April 17 2024 17:35:53.
textview.cpython-37.pyc File 7065 bytes April 17 2024 17:36:15.
tooltip.cpython-37.opt-1.pyc File 6570 bytes April 17 2024 17:36:09.
tooltip.cpython-37.opt-2.pyc File 4948 bytes April 17 2024 17:35:53.
tooltip.cpython-37.pyc File 6570 bytes April 17 2024 17:36:15.
tree.cpython-37.opt-1.pyc File 15696 bytes April 17 2024 17:36:09.
tree.cpython-37.opt-2.pyc File 14352 bytes April 17 2024 17:35:53.
tree.cpython-37.pyc File 15696 bytes April 17 2024 17:36:15.
undo.cpython-37.opt-1.pyc File 10769 bytes April 17 2024 17:36:09.
undo.cpython-37.opt-2.pyc File 10769 bytes April 17 2024 17:35:53.
undo.cpython-37.pyc File 10769 bytes April 17 2024 17:36:15.
window.cpython-37.opt-1.pyc File 3195 bytes April 17 2024 17:36:09.
window.cpython-37.opt-2.pyc File 3195 bytes April 17 2024 17:35:53.
window.cpython-37.pyc File 3195 bytes April 17 2024 17:36:15.
zoomheight.cpython-37.opt-1.pyc File 2798 bytes April 17 2024 17:36:09.
zoomheight.cpython-37.opt-2.pyc File 2749 bytes April 17 2024 17:35:53.
zoomheight.cpython-37.pyc File 2798 bytes April 17 2024 17:36:15.
zzdummy.cpython-37.opt-1.pyc File 1210 bytes April 17 2024 17:36:09.
zzdummy.cpython-37.opt-2.pyc File 1142 bytes April 17 2024 17:35:53.
zzdummy.cpython-37.pyc File 1210 bytes April 17 2024 17:36:15.

Reading File: //opt/alt/python37/lib64/python3.7//idlelib/__pycache__/pyparse.cpython-37.opt-1.pyc

B

� f�M�@sdZddlZed�\ZZZZZe�dej	ej
B�jZe�dej	�j
Ze�dej	ejB�j
Ze�dej	�j
Ze�dej	�j
Ze�d	ej	�j
ZGd
d�de�Ze�ed�d
�Ze�dd�dD��e�dd�dD��e�dd�dD��Gdd�d�Zedk�rddlmZeddd�dS)a�Define partial Python code Parser used by editor and hyperparser.

Instances of ParseMap are used with str.translate.

The following bound search and match functions are defined:
_synchre - start of popular statement;
_junkre - whitespace or comment line;
_match_stringre: string, possibly without closer;
_itemre - line that may have bracket structure start;
_closere - line that must be followed by dedent.
_chew_ordinaryre - non-special characters.
�N�z�
    ^
    [ \t]*
    (?: while
    |   else
    |   def
    |   return
    |   assert
    |   break
    |   class
    |   continue
    |   elif
    |   try
    |   except
    |   raise
    |   import
    |   yield
    )
    \b
z'
    [ \t]*
    (?: \# \S .* )?
    \n
aK
    \""" [^"\\]* (?:
                     (?: \\. | "(?!"") )
                     [^"\\]*
                 )*
    (?: \""" )?

|   " [^"\\\n]* (?: \\. [^"\\\n]* )* "?

|   ''' [^'\\]* (?:
                   (?: \\. | '(?!'') )
                   [^'\\]*
                )*
    (?: ''' )?

|   ' [^'\\\n]* (?: \\. [^'\\\n]* )* '?
zM
    [ \t]*
    [^\s#\\]    # if we match, m.end()-1 is the interesting char
z_
    \s*
    (?: return
    |   break
    |   continue
    |   raise
    |   pass
    )
    \b
z
    [^[\](){}#'"\\]+
c@seZdZdZdd�ZdS)�ParseMapapDict subclass that maps anything not in dict to 'x'.

    This is designed to be used with str.translate in study1.
    Anything not specifically mapped otherwise becomes 'x'.
    Example: replace everything except whitespace with 'x'.

    >>> keepwhite = ParseMap((ord(c), ord(c)) for c in ' \t\n\r')
    >>> "a + b\tc\nd".translate(keepwhite)
    'x x x\tx\nx'
    cCsdS)N�x�)�self�keyrr�4/opt/alt/python37/lib64/python3.7/idlelib/pyparse.py�__missing__rszParseMap.__missing__N)�__name__�
__module__�__qualname__�__doc__r	rrrrrfs
r�rccs|]}t|�td�fVqdS)�(N)�ord)�.0�crrr�	<genexpr>xsrz({[ccs|]}t|�td�fVqdS)�)N)r)rrrrrrysz)}]ccs|]}t|�t|�fVqdS)N)r)rrrrrrzsz"'\
#c@s|eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�ParsercCs||_||_dS)N)�indentwidth�tabwidth)rrrrrr�__init__szParser.__init__cCs||_d|_dS)Nr)�code�study_level)r�srrr�set_code�szParser.set_codec	Cs�|jd}}t|�}xdtd�D]X}|�dd|�}|dkr:P|�dd|�d}t|||�}|rr||���sr|��}P|}qW|dkr�t|�}|r�||���s�|��}|S|d}x.t||�}|r�|��\}}||�s�|}q�Pq�W|S)a^
        Return index of a good place to begin parsing, as close to the
        end of the string as possible.  This will be the start of some
        popular stmt like "if" or "def".  Return None if none found:
        the caller should pass more prior context then, if possible, or
        if not (the entire program text up until the point of interest
        has already been tried) pass 0 to set_lo().

        This will be reliable iff given a reliable is_char_in_string()
        function, meaning that when it says "no", it's absolutely
        guaranteed that the char is not in a string.
        Nrz:
r�
�)r�len�range�rfind�_synchre�start�span)	rZis_char_in_stringr�pos�limitZtries�i�mrrrr�find_good_parse_start�s4
	
zParser.find_good_parse_startcCs|dkr|j|d�|_dS)zx Throw away the start of the string.

        Intended to be called with the result of find_good_parse_start().
        rN)r)r�lorrr�set_lo�sz
Parser.set_loc
Cs�|jdkrdSd|_|j}|�t�}|�dd�}|�dd�}|�dd�}|�dd�}|�dd�}t}d	}}d	g|_}|j}d	t|�}}�x�||k�rn||}	|d}|	dkr�q�|	dkr�|d}|d	kr�||�q�|	d
kr�|d}q�|	dk�r|r�|d}q�|	dk�s|	d
k�r$|	}
||d|d�|
dk�r>|
d}
|}t|
�d}||}x�||k�r||}	|d}|	dk�r��qX||d||�|
k�r�||}P|	dk�r�|d}|d	k�rX|d	k�r�||�P�qX|	dk�rX||dk�r�|d}|d}�qX�qXW|d|k�rt	}q�t
}q�|	dk�r<|�d|�}q�||dk�rd|d}|d|k�rdt}|d}q�W|t	k�r�|t
k�r�|d	k�r�t
}||_|d|k�r�||�dS)z�Find the line numbers of non-continuation lines.

        As quickly as humanly possible <wink>, find the line numbers (0-
        based) of the non-continuation lines.
        Creates self.{goodlines, continuation}.
        rNZxxxxxxxx�xZxxxxZxxz
xrrrr�"�'���\�#���)rr�	translate�trans�replace�C_NONE�	goodlines�appendr�C_STRING_FIRST_LINE�C_STRING_NEXT_LINES�find�C_BACKSLASH�	C_BRACKET�continuation)
rrr?�levelZlnor8Z	push_goodr'�n�chZquoteZfirstlno�wrrr�_study1�s�










zParser._study1cCs|��|jS)N)rDr?)rrrr�get_continuation_typeOszParser.get_continuation_typecCs�|jdkrdS|��d|_|j|j}}t|�d}t|�}xX|r�|}x4t||d||�D]}|�dd|d�d}q`Wt||�r�|d}q@Pq@W|dkr�|}|||_|_	d}g}|j
}	|dfg}
�x�||k�rxt|||�}|�rD|��}|d}x&||k�r ||dk�r |d}�q�W||k�r4||}|}||k�rDP||}
|
dk�r~|	|�|
�
|t|�f�|
}|d}q�|
d	k�r�|�r�|d
=|
}|d}|
�
|t|�f�q�|
dk�s�|
dk�r|
�
|t|�df�|
}t
|||���}|
�
|t|�f�q�|
d
k�rL|
�
|t|�df�|�d||�d}|
�
|t|�f�q�|d}||dk�rn|
||}|d}q�W||_|�r�|d
nd|_t|
�|_dS)am
        study1 was sufficient to determine the continuation status,
        but doing more requires looking at every character.  study2
        does this for the last interesting statement in the block.
        Creates:
            self.stmt_start, stmt_end
                slice indices of last interesting stmt
            self.stmt_bracketing
                the bracketing structure of the last interesting stmt; for
                example, for the statement "say(boo) or die",
                stmt_bracketing will be ((0, 0), (0, 1), (2, 0), (2, 1),
                (4, 0)). Strings and comments are treated as brackets, for
                the matter.
            self.lastch
                last interesting character before optional trailing comment
            self.lastopenbracketpos
                if continuation is C_BRACKET, index of last open bracket
        r/Nrrr�z 	
z([{z)]}r3r-r.r2)rrDrr8rr r!�_junkre�
stmt_start�stmt_endr9�_chew_ordinaryre�end�_match_stringrer<�lastch�lastopenbracketpos�tuple�stmt_bracketing)rrr8r'�p�qZnothingrM�stackZ
push_stackZ
bracketingr(ZnewprBrrr�_study2Ss�








zParser._study2cCs�|��|j}|j}t|�}|�dd|�d}}|d}xj||kr|t||�}|rf|��d}d}Pq<|�d|�d}}q<W|}}x||dkr�|d}q�W|j}t|||��	|j
��|S)zpReturn number of spaces the next line should be indented.

        Line continuation must be C_BRACKET.
        rrrz 	)rTrNrrr!�_itemrerKr<r�
expandtabsr)r�jrrAZorigir'r(Zextrarrr�compute_bracket_indent�s$

zParser.compute_bracket_indentcCs|��|j}|d|dS)z�Return number of physical lines in last stmt.

        The statement doesn't have to be an interesting statement.  This is
        intended to be called when continuation is C_BACKSLASH.
        r3���)rDr8)rr8rrr�get_num_lines_in_stmt�szParser.get_num_lines_in_stmtcCs�|��|j}|j}x||dkr,|d}qW|}|�d|�d}d}}x�||k�r||}|dkrx|d}|d}qL|dkr�|r�|d}|d}qL|dks�|dkr�t|||���}qL|d	kr�PqL|dk�r|d
k�r|dks�||ddk�r||dd
k�rd}PqL|d}qLW|�r>|d}t�d|||��d
k}|�sf|}x||dk�rd|d}�qJWt||j|��	|j
��dS)z�Return number of spaces the next line should be indented.

        Line continuation must be C_BACKSLASH.  Also assume that the new
        line is the first one following the initial line of the stmt.
        z 	rrrz([{z)]}r-r.r2�=z=<>!z\s*\\Nz 	
)rTrrHr<rLrK�re�matchrrVr)rrr'�startpos�endpos�foundr@rBrrr�compute_backslash_indent�sH

zParser.compute_backslash_indentcCsN|��|j|j}}|}|j}x ||kr@||dkr@|d}q"W|||�S)z`Return the leading whitespace on the initial line of the last
        interesting stmt.
        z 	r)rTrHrIr)rr'rArWrrrr�get_base_indent_string0szParser.get_base_indent_stringcCs|��|jdkS)z<Return True if the last interesting statement opens a block.�:)rTrM)rrrr�is_block_opener<szParser.is_block_openercCs|��t|j|j�dk	S)z=Return True if the last interesting statement closes a block.N)rT�_closererrH)rrrr�is_block_closerAszParser.is_block_closercCs|��|jS)z�Return bracketing structure of the last interesting statement.

        The returned tuple is in the format defined in _study2().
        )rTrP)rrrr�get_last_stmt_bracketingFszParser.get_last_stmt_bracketingN)r
rrrrr)r+rDrErTrXrZrarbrdrfrgrrrrr}s8	{
9r�__main__)�mainzidlelib.idle_test.test_pyparser/)�	verbosity)r
r\r r7r=r:r;r>�compile�VERBOSE�	MULTILINE�searchr"r]rG�DOTALLrLrUrerJ�dictr�fromkeysr5�updaterr
Zunittestrirrrr�<module>s4	U


SILENT KILLER Tool