SILENT KILLERPanel

Current Path: > > opt > alt > python34 > lib64 > python3.4 > > 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/python34/lib64/python3.4//idlelib/__pycache__

NameTypeSizeLast ModifiedActions
AutoComplete.cpython-34.pyc File 7715 bytes April 17 2024 17:10:07.
AutoComplete.cpython-34.pyo File 7715 bytes April 17 2024 17:10:07.
AutoCompleteWindow.cpython-34.pyc File 11539 bytes April 17 2024 17:10:07.
AutoCompleteWindow.cpython-34.pyo File 11483 bytes April 17 2024 17:10:03.
AutoExpand.cpython-34.pyc File 3183 bytes April 17 2024 17:10:07.
AutoExpand.cpython-34.pyo File 3183 bytes April 17 2024 17:10:07.
Bindings.cpython-34.pyc File 3159 bytes April 17 2024 17:10:07.
Bindings.cpython-34.pyo File 3159 bytes April 17 2024 17:10:07.
CallTipWindow.cpython-34.pyc File 5370 bytes April 17 2024 17:10:07.
CallTipWindow.cpython-34.pyo File 5370 bytes April 17 2024 17:10:07.
CallTips.cpython-34.pyc File 5951 bytes April 17 2024 17:10:07.
CallTips.cpython-34.pyo File 5951 bytes April 17 2024 17:10:07.
ClassBrowser.cpython-34.pyc File 8578 bytes April 17 2024 17:10:07.
ClassBrowser.cpython-34.pyo File 8578 bytes April 17 2024 17:10:07.
CodeContext.cpython-34.pyc File 6186 bytes April 17 2024 17:10:07.
CodeContext.cpython-34.pyo File 6145 bytes April 17 2024 17:10:03.
ColorDelegator.cpython-34.pyc File 8025 bytes April 17 2024 17:10:07.
ColorDelegator.cpython-34.pyo File 8025 bytes April 17 2024 17:10:07.
Debugger.cpython-34.pyc File 15672 bytes April 17 2024 17:10:07.
Debugger.cpython-34.pyo File 15672 bytes April 17 2024 17:10:07.
Delegator.cpython-34.pyc File 1101 bytes April 17 2024 17:10:07.
Delegator.cpython-34.pyo File 1101 bytes April 17 2024 17:10:07.
EditorWindow.cpython-34.pyc File 52664 bytes April 17 2024 17:10:07.
EditorWindow.cpython-34.pyo File 52568 bytes April 17 2024 17:10:03.
FileList.cpython-34.pyc File 3640 bytes April 17 2024 17:10:07.
FileList.cpython-34.pyo File 3610 bytes April 17 2024 17:10:03.
FormatParagraph.cpython-34.pyc File 6373 bytes April 17 2024 17:10:07.
FormatParagraph.cpython-34.pyo File 6373 bytes April 17 2024 17:10:07.
GrepDialog.cpython-34.pyc File 5664 bytes April 17 2024 17:10:07.
GrepDialog.cpython-34.pyo File 5664 bytes April 17 2024 17:10:07.
HyperParser.cpython-34.pyc File 7433 bytes April 17 2024 17:10:07.
HyperParser.cpython-34.pyo File 7433 bytes April 17 2024 17:10:07.
IOBinding.cpython-34.pyc File 14437 bytes April 17 2024 17:10:07.
IOBinding.cpython-34.pyo File 14437 bytes April 17 2024 17:10:07.
IdleHistory.cpython-34.pyc File 3703 bytes April 17 2024 17:10:07.
IdleHistory.cpython-34.pyo File 3703 bytes April 17 2024 17:10:07.
MultiCall.cpython-34.pyc File 16619 bytes April 17 2024 17:10:07.
MultiCall.cpython-34.pyo File 16554 bytes April 17 2024 17:10:03.
MultiStatusBar.cpython-34.pyc File 1944 bytes April 17 2024 17:10:07.
MultiStatusBar.cpython-34.pyo File 1944 bytes April 17 2024 17:10:07.
ObjectBrowser.cpython-34.pyc File 5524 bytes April 17 2024 17:10:07.
ObjectBrowser.cpython-34.pyo File 5524 bytes April 17 2024 17:10:07.
OutputWindow.cpython-34.pyc File 4547 bytes April 17 2024 17:10:07.
OutputWindow.cpython-34.pyo File 4547 bytes April 17 2024 17:10:07.
ParenMatch.cpython-34.pyc File 6471 bytes April 17 2024 17:10:07.
ParenMatch.cpython-34.pyo File 6471 bytes April 17 2024 17:10:07.
PathBrowser.cpython-34.pyc File 4118 bytes April 17 2024 17:10:07.
PathBrowser.cpython-34.pyo File 4118 bytes April 17 2024 17:10:07.
Percolator.cpython-34.pyc File 4127 bytes April 17 2024 17:10:07.
Percolator.cpython-34.pyo File 3954 bytes April 17 2024 17:10:03.
PyParse.cpython-34.pyc File 11526 bytes April 17 2024 17:10:07.
PyParse.cpython-34.pyo File 11084 bytes April 17 2024 17:10:03.
PyShell.cpython-34.pyc File 48208 bytes April 17 2024 17:10:07.
PyShell.cpython-34.pyo File 48069 bytes April 17 2024 17:10:03.
RemoteDebugger.cpython-34.pyc File 14655 bytes April 17 2024 17:10:07.
RemoteDebugger.cpython-34.pyo File 14513 bytes April 17 2024 17:10:03.
RemoteObjectBrowser.cpython-34.pyc File 2009 bytes April 17 2024 17:10:07.
RemoteObjectBrowser.cpython-34.pyo File 2009 bytes April 17 2024 17:10:07.
ReplaceDialog.cpython-34.pyc File 6920 bytes April 17 2024 17:10:07.
ReplaceDialog.cpython-34.pyo File 6920 bytes April 17 2024 17:10:07.
RstripExtension.cpython-34.pyc File 1359 bytes April 17 2024 17:10:07.
RstripExtension.cpython-34.pyo File 1359 bytes April 17 2024 17:10:07.
ScriptBinding.cpython-34.pyc File 7082 bytes April 17 2024 17:10:07.
ScriptBinding.cpython-34.pyo File 7082 bytes April 17 2024 17:10:07.
ScrolledList.cpython-34.pyc File 5771 bytes April 17 2024 17:10:07.
ScrolledList.cpython-34.pyo File 5771 bytes April 17 2024 17:10:07.
SearchDialog.cpython-34.pyc File 3361 bytes April 17 2024 17:10:07.
SearchDialog.cpython-34.pyo File 3361 bytes April 17 2024 17:10:07.
SearchDialogBase.cpython-34.pyc File 7713 bytes April 17 2024 17:10:07.
SearchDialogBase.cpython-34.pyo File 7713 bytes April 17 2024 17:10:07.
SearchEngine.cpython-34.pyc File 7473 bytes April 17 2024 17:10:07.
SearchEngine.cpython-34.pyo File 7473 bytes April 17 2024 17:10:07.
StackViewer.cpython-34.pyc File 5619 bytes April 17 2024 17:10:07.
StackViewer.cpython-34.pyo File 5619 bytes April 17 2024 17:10:07.
ToolTip.cpython-34.pyc File 4052 bytes April 17 2024 17:10:07.
ToolTip.cpython-34.pyo File 4052 bytes April 17 2024 17:10:07.
TreeWidget.cpython-34.pyc File 15657 bytes April 17 2024 17:10:07.
TreeWidget.cpython-34.pyo File 15657 bytes April 17 2024 17:10:07.
UndoDelegator.cpython-34.pyc File 11816 bytes April 17 2024 17:10:07.
UndoDelegator.cpython-34.pyo File 11816 bytes April 17 2024 17:10:07.
WidgetRedirector.cpython-34.pyc File 7119 bytes April 17 2024 17:10:07.
WidgetRedirector.cpython-34.pyo File 7119 bytes April 17 2024 17:10:07.
WindowList.cpython-34.pyc File 3237 bytes April 17 2024 17:10:07.
WindowList.cpython-34.pyo File 3237 bytes April 17 2024 17:10:07.
ZoomHeight.cpython-34.pyc File 1402 bytes April 17 2024 17:10:07.
ZoomHeight.cpython-34.pyo File 1402 bytes April 17 2024 17:10:07.
__init__.cpython-34.pyc File 434 bytes April 17 2024 17:10:07.
__init__.cpython-34.pyo File 434 bytes April 17 2024 17:10:07.
__main__.cpython-34.pyc File 279 bytes April 17 2024 17:10:07.
__main__.cpython-34.pyo File 279 bytes April 17 2024 17:10:07.
aboutDialog.cpython-34.pyc File 5951 bytes April 17 2024 17:10:07.
aboutDialog.cpython-34.pyo File 5951 bytes April 17 2024 17:10:07.
configDialog.cpython-34.pyc File 48987 bytes April 17 2024 17:10:07.
configDialog.cpython-34.pyo File 48987 bytes April 17 2024 17:10:07.
configHandler.cpython-34.pyc File 26731 bytes April 17 2024 17:10:07.
configHandler.cpython-34.pyo File 26731 bytes April 17 2024 17:10:07.
configHelpSourceEdit.cpython-34.pyc File 5793 bytes April 17 2024 17:10:07.
configHelpSourceEdit.cpython-34.pyo File 5793 bytes April 17 2024 17:10:07.
configSectionNameDialog.cpython-34.pyc File 3941 bytes April 17 2024 17:10:07.
configSectionNameDialog.cpython-34.pyo File 3941 bytes April 17 2024 17:10:07.
dynOptionMenuWidget.cpython-34.pyc File 2437 bytes April 17 2024 17:10:07.
dynOptionMenuWidget.cpython-34.pyo File 2437 bytes April 17 2024 17:10:07.
help.cpython-34.pyc File 9749 bytes April 17 2024 17:10:07.
help.cpython-34.pyo File 9749 bytes April 17 2024 17:10:03.
idle.cpython-34.pyc File 368 bytes April 17 2024 17:10:07.
idle.cpython-34.pyo File 368 bytes April 17 2024 17:10:07.
idlever.cpython-34.pyc File 551 bytes April 17 2024 17:10:07.
idlever.cpython-34.pyo File 551 bytes April 17 2024 17:10:07.
keybindingDialog.cpython-34.pyc File 11016 bytes April 17 2024 17:10:07.
keybindingDialog.cpython-34.pyo File 11016 bytes April 17 2024 17:10:07.
macosxSupport.cpython-34.pyc File 7306 bytes April 17 2024 17:10:07.
macosxSupport.cpython-34.pyo File 7191 bytes April 17 2024 17:10:03.
rpc.cpython-34.pyc File 21006 bytes April 17 2024 17:10:07.
rpc.cpython-34.pyo File 20903 bytes April 17 2024 17:10:03.
run.cpython-34.pyc File 12646 bytes April 17 2024 17:10:07.
run.cpython-34.pyo File 12596 bytes April 17 2024 17:10:03.
tabbedpages.cpython-34.pyc File 17139 bytes April 17 2024 17:10:07.
tabbedpages.cpython-34.pyo File 17139 bytes April 17 2024 17:10:07.
textView.cpython-34.pyc File 3338 bytes April 17 2024 17:10:07.
textView.cpython-34.pyo File 3338 bytes April 17 2024 17:10:07.

Reading File: //opt/alt/python34/lib64/python3.4//idlelib/__pycache__/FormatParagraph.cpython-34.pyc

�
f fw�@s�dZddlZddlmZGdd�d�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
edkr�ddlZej
ddddd�ndS)a�Extension to format a paragraph or selection to a max width.

Does basic, standard text formatting, and also understands Python
comment blocks. Thus, for editing Python source code, this
extension is really only suitable for reformatting these comment
blocks or triple-quoted strings.

Known problems with comment reformatting:
* If there is a selection marked, and the first line of the
  selection is not complete, the block will probably not be detected
  as comments, and will have the normal "text formatting" rules
  applied.
* If a comment block has leading whitespace that mixes tabs and
  spaces, they will not be considered part of the same block.
* Fancy comments, like this bulleted list, aren't handled :-)
�N)�idleConfc@sIeZdZddgfgZdd�Zdd�Zdd	d
�ZdS)�FormatParagraph�format�Format Paragraph�<<format-paragraph>>cCs
||_dS)N)�editwin)�selfr�r	�</opt/alt/python34/lib64/python3.4/idlelib/FormatParagraph.py�__init__szFormatParagraph.__init__cCs
d|_dS)N)r)rr	r	r
�close szFormatParagraph.closeNc	CsS|dkr0tjddddddd�}n|jj}|jj�\}}|r~|r~|j||�}t|�}n$t||jd	��\}}}}|r�t	|||�}nt
||�}|jd
dd�||kr2|jd	|�|j
�|j||�|j||�|j�n|jd	|�|jd	�d
S)a�Formats paragraph to a max width specified in idleConf.

        If text is selected, format_paragraph_event will start breaking lines
        at the max width, starting from the beginning selection.

        If no text is selected, format_paragraph_event uses the current
        cursor location to determine the paragraph (lines of text surrounded
        by blank lines) and formats it.

        The length limit parameter is for testing with a known value.
        N�
extensionsrz	max-width�type�int�default�H�insertZselz1.0�end�break)rZ	GetOptionr�textZget_selection_indices�get�get_comment_header�find_paragraph�index�reformat_comment�reformat_paragraphZ
tag_removeZmark_setZundo_block_startZdeleterZundo_block_stopZsee)	rZevent�limitr�first�last�data�comment_header�newdatar	r	r
�format_paragraph_event#s.$


z&FormatParagraph.format_paragraph_event)rr)�__name__�
__module__�__qualname__Zmenudefsrrr"r	r	r	r
rs
rc
Cs�tt|jd��\}}|jd|d|�}xM|jd|dd�r�t|�r�|d}|jd|d|�}q;W|}t|�}t|�}xQt|�|kr�t||d��r�|d}|jd|d|�}q�Wd|}|d}|jd|d|�}x]|dkr�t|�|kr�t||d��r�|d}|jd|d|�}q+Wd|d}	|	|||j|	|�fS)	z�Returns the start/stop indices enclosing the paragraph that mark is in.

    Also returns the comment format string, if any, and paragraph of text
    between the start/stop indices.
    �.z%d.0z%d.end�<r�Nr)�mapr�splitrZcompare�is_all_whiter�len)
r�mark�lineno�col�lineZfirst_linenor Zcomment_header_lenrrr	r	r
rMs,(




rcCs|jd�}d}t|�}x*||krMt||�rM|d}q$W||kr^|St||�}|d|kr�t||d�r�t||d�}n|}|d|�}|}x||kr�t||�r�tjd||�}	x�tdt|	�d�D]�}
|	|
}|s1qnt||j��|kru||kru|j|j��|}n||d}|
dt|	�kr|	|
ddkr|d}qqW|d}q�W|j|j��|j	||d��dj
|�S)z3Return data reformatted to specified width (limit).�
rr(Nz(\s+)�� )r*r,r+�
get_indent�re�range�
expandtabs�append�rstrip�extend�join)rr�lines�i�nZindent1Zindent2�new�partialZwords�jZwordr	r	r
rrs<% 
	*rcs�t���dj�fdd�|jd�D��}t|t��d�}t||�}|jd�}d}|d	s�d}|dd
�}ndj�fdd�|D��|S)z?Return data reformatted to specified width with comment header.r1c3s|]}|�d�VqdS)Nr	)�.0r0)�lcr	r
�	<genexpr>�sz#reformat_comment.<locals>.<genexpr>��r(Nc3s|]}�|VqdS)Nr	)rBr0)r r	r
rD�s���rG)r,r;r*�maxr)rrr Zformat_widthr!Zblock_suffixr	)r rCr
r�s+
rcCstjd|�dk	S)z/Return True if line is empty or all whitespace.z^\s*$N)r5�match)r0r	r	r
r+�sr+cCstjd|�j�S)z/Return the initial space or tab indent of line.z	^([ \t]*))r5rI�group)r0r	r	r
r4�sr4cCs/tjd|�}|dkr"dS|jd�S)aReturn string with leading whitespace and '#' from line or ''.

    A null return indicates that the line is not a comment line. A non-
    null return, such as '    #', will be used to find the other lines of
    a comment block with the same  indent.
    z^([ \t]*#*)NrFr()r5rIrJ)r0�mr	r	r
r�sr�__main__z&idlelib.idle_test.test_formatparagraph�	verbosityr2�exitF)�__doc__r5Zidlelib.configHandlerrrrrrr+r4rr#Zunittest�mainr	r	r	r
�<module>s8%$

SILENT KILLER Tool