403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.17
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Doc/tools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Doc/tools/__pycache__/rstlint.cpython-36.pyc
3

x2_��g@s�ddlZddlZddlZddlZddlmZmZmZmZddl	m
Z
dddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7dd8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d"d\d]d^d_d`dadbdcdddedfdgdhggZdidjje�dkZej
dle�Zej
dm�Zej
dn�ZiZdodpdq�Zdrds�Zedtdudv�dwdx��Zedydzdv�d{d|��Zedtdy�d}d~��Zedyddv�dd���Zed�dzd�dq�d�d���Zd�d��Zed�k�r�ejeej��dS)��N)�join�splitext�abspath�exists)�defaultdictZ
admonitionZ	attentionZcaution�classZcompoundZ	container�contentsz	csv-tableZdangerZdatezdefault-roleZepigraph�errorZfigureZfooter�headerZ
highlightsZhintZimageZ	important�includez
line-blockz
list-table�metaZnotezparsed-literalz
pull-quote�raw�replacezrestructuredtext-test-directiveZroleZrubricZsectnumZsidebar�tableztarget-notesZtip�titleZtopicZunicodeZwarningZacksZ	attributeZ
autoattributeZ	autoclassZautodataZ
autoexceptionZautofunctionZ
automethodZ
automoduleZcenteredZ	cfunction�classmethodZcmacroZ	cmdoptionZcmemberz
code-blockZconfvalZcssclassZctypeZ
currentmoduleZcvar�dataZ	decoratorZdecoratormethodzdeprecated-removedzdeprecated(?!-removed)ZdescribeZ	directiveZdoctestZenvvarZeventZ	exceptionZfunctionZglossaryZ	highlightZ
highlightlangzimpl-detail�indexZliteralinclude�methodZmiscnews�moduleZmoduleauthorZopcodeZ
pdbcommandZproductionlistZprogramZ
sectionauthorZseealsoZ
sourcecode�staticmethodZtabularcolumnsZtestcodeZ
testoutputZ	testsetupZtoctreeZtodoZtodolistZversionaddedZversionchanged�(�|�)z(?<!\.)\.\. %s([^a-z:]|:(?!:))z(^| )`\w([^`]*?\w)?`($| )z[a-z]::\s|`|\.\.\s*\w+:�F)�severity�falsepositivescs��fdd�}|S)z.Decorator to register a function as a checker.csJx�D]}tj|g�j|�qWx$tD]}t||�j|t|��q&W|S)N)�checkers�
setdefault�append�
checker_props�setattr�get)�func�suffixZprop)�kwds�suffixes��6/opt/alt/python36/lib64/python3.6/Doc/tools/rstlint.py�deco8s


zchecker.<locals>.decor')r&r%r)r')r%r&r(�checker6sr*z.py�)rccsvdj|�}d|kr.tjdkr"d	V|jdd�}yt||d�Wn2tk
rp}z|jd|fVWYdd}~XnXdS)
z'Check Python examples for valid syntax.��
�ntr�\r in code file�execznot compilable: %sN)rr/)r�os�namer�compile�SyntaxError�lineno)�fn�lines�code�errr'r'r(�check_syntaxAs

r:z.rst�ccsvd}xlt|�D]`\}}tj|�r.|ddfVd|kr<d}q|r\tj|�r\|ddfVq|r|j�rd}qWdS)z%Check for suspicious reST constructs.Frz+comment seems to be intended as a directivez.. productionlist::Tzdefault role usedN)�	enumerate�seems_directive_re�search�default_role_re�strip)r6r7Zinprod�lno�liner'r'r(�check_suspicious_constructsOs
rCccsrxlt|�D]`\}}d|kr(|ddfVd|kr>|ddfV|dd	�jd�|dd
�kr
|ddfVq
WdS)z,Check for whitespace and line length issues.r-rz
\r in line�	zOMG TABS!!!1Nz 	ztrailing whitespace���rE)r<�rstrip)r6r7rArBr'r'r(�check_whitespace^srGccs\xVt|�D]J\}}t|�dkr
|j�ddkr
d|kr
|j�jd�r
|dd	fVq
Wd
S)z:Check for line length; this checker is not run by default.�Qrz+|zhttp://�.. function�	.. method�.. cfunctionrz
line too longN)rIrJrK)r<�len�lstrip�
startswith)r6r7rArBr'r'r(�check_line_lengthjsrOz.htmlTccs6x0t|�D]$\}}tj|�r
|dd|fVq
WdS)zdCheck HTML files for leaked reST markup; this only works if
    the HTML files have been built.
    rzpossibly leaked markup: %rN)r<�leaked_markup_rer>)r6r7rArBr'r'r(�check_leaked_markupxs
rQc Cs&d|d}ytj|dd�d�\}}Wntjk
rFt|�dSXd}d}g}d}xT|D]L\}}	|dkrtd}q^|d	kr�d}q^|d
kr�t|	�}q^|dkr^|jt|	��q^Wt|�dkr�d}
n"t|�dkr�|d}
nt|�dSt|
��s�td
|
�dStt�}�x�t	j
|
�D�]�\}}
}t|�|k�r:|
dd�=�q�xd|D�]Z}t||�}|dd�dk�rp|dd�}t|�|k�r��qBt|�d}t
j|d�}|�s��qB|�r�td|�y&t|ddd��}t|�}WdQRXWnLttfk
�r(}z*td||f�|dd7<�wBWYdd}~XnXxp|D]h}|j�rH|�rH�q0|j}||k�r0x<|||�D].\}}td||||f�||d7<�qdW�q0W�qBW�qW|�r�t�|�s�|dk�r�td|�ntd�n>x<t|�D]0}||}td||dk�rd�p
d|f��q�Wtt|��S)NaUsage: %s [-v] [-f] [-s sev] [-i path]* [path]

Options:  -v       verbose (print all checked file names)
          -f       enable checkers that yield many false positives
          -s sev   only show problems with severity >= sev
          -i path  ignore subdir or file path
rrzvfs:i:r;Fz-vTz-fz-sz-i�.zError: path %s does not existz./zChecking %s...�rzutf-8)�encodingz%s: cannot open: %sr+z[%d] %s:%d: %sz&No problems with severity >= %d found.zNo problems found.z$%d problem%s with severity %d found.�sr,)�getoptZGetoptError�print�intrrrLrrr1�walkrrrr"�open�list�IOError�OSErrorrr�sorted�bool)�argvZusageZgopts�args�verboser�ignoreZfalseposZopt�val�path�count�root�dirs�filesr6ZextZcheckerlist�fr7r9r*ZcsevrA�msgZnumberr'r'r(�main�s�






(

$rl�__main__)r1�re�sysrVZos.pathrrrr�collectionsrZ
directivesZall_directivesr3r=r?rPrr r*r:rCrGrOrQrl�__name__�exitr`r'r'r'r(�<module>sN








a


Youez - 2016 - github.com/yon3zu
LinuXploit