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/FormatParagraph.pyc
Size4.71 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed20-Jun-2019 19:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s`ddkZddklZdd
d��YZd�Zd�Zd�Zd�Zd �ZdS( iÿÿÿÿN(tidleConftFormatParagraphcBs5eZddgfgZd�Zd�Zd�ZRS(tformatsFormat Paragraphs<<format-paragraph>>cCs
||_dS(N(teditwin(tselfR((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyt__init__scCs
d|_dS(N(tNoneR(R((s//usr/lib64/python2.6/idlelib/FormatParagraph.pytclosesc
Csêttiddd��}|ii}|ii�\}}|o#|o|i||�}d}n%t||id��\}}}}|oÁ|i d�}t
t |�d�|�}di |�}t
|t |�d�} t|| �}
|
i d�}
d} |
d pd} |
d }
n|d
�} di t
| |
��| }
nt||�}
|id d d
�|
|joH|id|�|i�|i||�|i||
�|i�n|id|�|id�dS(NtmainRt paragraphttinserts
cSs||S(((tsttl((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyt<lambda>/siiÿÿÿÿcSs||S(((titemtprefix((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyR?stsels1.0tendtbreak(tintRt GetOptionRttexttget_selection_indicestgettfind_paragraphtindextsplittmaptlentjointmaxtreformat_paragrapht
tag_removetmark_settundo_block_starttdeleteR tundo_block_stoptsee(
RteventtmaxformatwidthRtfirsttlasttdatatcomment_headertlinest format_widthtnewdatat block_suffixtbuilder((s//usr/lib64/python2.6/idlelib/FormatParagraph.pytformat_paragraph_event"s> 
$   


(sFormat Paragraphs<<format-paragraph>>(t__name__t
__module__tmenudefsRRR2(((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyRs
  c
Cs°tt|id��\}}|id|d|�}xP|id|dd�o5t|�o(|d}|id|d|�}q;W|}t|�}t|�}xNt|�|jo:t||� o(|d}|id|d|�}q¬Wd|}|d}|id|d|�}x[|djoMt|�|jo:t||� o(|d}|id|d|�}q+Wd|d} | |||i| |�fS(Nt.s%d.0s %d.0 lineendt<Rii(RRRRtcomparet is_all_whitetget_comment_headerR(
Rtmarktlinenotcoltlinet first_linenoR,tcomment_header_lenR*R)((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyRPs2'
  




c Cs
|id�}d}t|�}x-||jot||�o|d}q$W||jo|St||�}|d|jo.t||d� ot||d�}n|}|| }|}x||jot||� oîtid||�} xÇtdt| �d�D]­}
| |
} | pqnt|| i��|jo*||jo|i|i��|}n|| d}|
dt| �jo#| |
ddjo|d}qqW|d}qËW|i|i��|i ||�di
|�S(Ns
iis(\s+)it ( RRR9t
get_indenttretranget
expandtabstappendtrstriptextendR( R+tlimitR-titntindent1tindent2tnewtpartialtwordstjtword((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyR isB 
'



,cCstid|�dj S(Ns^\s*$(RCtmatchR(R>((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyR9�scCstid|�i�S(Ns^(\s*)(RCRStgroup(R>((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyRB�scCs1tid|�}|djodS|id�S(Ns^(\s*#*)R
i(RCRSRRT(R>tm((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyR:�s
(( RCtidlelib.configHandlerRRRR R9RBR:(((s//usr/lib64/python2.6/idlelib/FormatParagraph.pyt<module>s <  #