403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/docutils/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/docutils/utils/__pycache__/smartquotes.cpython-39.opt-2.pyc
a

OԼa���@sbddlmZdZdZddlZddlZGdd�de�Zedfdd	�Zedfd
d�Z	dLdd
�Z
dMdd�ZdNdd�Zdd�Z
dd�Zdd�Zdd�ZdOdd�ZdPdd�Zdd �Zed!k�r^ddlZz&ddlZe�ejd"�e��dZWndZYn0e���d#d$�Ze�d%d&e�Zd'd(�e�d$�D�Ze� d�Z!e"e#e�dd)�D]VZ$e�%ee$�D],Z&d#�'e!fe&�Z(e(ej)v�rPe(Z�q@�qPe!ej)v�r�e!ZndZ�q@ddl*Z*e*j+d*d+�Z,e,j-d,d-dd.d/�e,j-d0d1d2d3d/�e,j-d4d5ed6ed/�e,j-d7d8d9d:d;�e,j-d<d9d=d;�e,j-d>d9d?d;�e,j-d@d9dAd;�e,j-dBd9dCd;�e,�.�Z/e/j0�rTe1e2��n
e/j3�rfe1e�n�e/j4�r�e1�e1dD�e1dE�e1dF�e5ej)�6��D]Z7e1dGe7ej)e7f��q�n�e/j8�r�ddl9Z9GdHdI�dIe9j:�Z;e9�<��=e;�Z>e9�?��@e>�nde/jA�r.dJe/jBv�r e/jB�dJd"�e/_Bne/jBdJ7_BejC�D��Ee/jF�ZGe1eeGe/jHe/jBdK��Ie/jF��dS)Q�)�print_functionu�

Options
=======

Numeric values are the easiest way to configure SmartyPants' behavior:

:0:     Suppress all transformations. (Do nothing.)

:1:     Performs default SmartyPants transformations: quotes (including
        \`\`backticks'' -style), em-dashes, and ellipses. "``--``" (dash dash)
        is used to signify an em-dash; there is no support for en-dashes

:2:     Same as smarty_pants="1", except that it uses the old-school typewriter
        shorthand for dashes:  "``--``" (dash dash) for en-dashes, "``---``"
        (dash dash dash)
        for em-dashes.

:3:     Same as smarty_pants="2", but inverts the shorthand for dashes:
        "``--``" (dash dash) for em-dashes, and "``---``" (dash dash dash) for
        en-dashes.

:-1:    Stupefy mode. Reverses the SmartyPants transformation process, turning
        the characters produced by SmartyPants into their ASCII equivalents.
        E.g. the LEFT DOUBLE QUOTATION MARK (“) is turned into a simple
        double-quote (\"), "—" is turned into two dashes, etc.


The following single-character attribute values can be combined to toggle
individual transformations from within the smarty_pants attribute. For
example, ``"1"`` is equivalent to ``"qBde"``.

:q:     Educates normal quote characters: (") and (').

:b:     Educates \`\`backticks'' -style double quotes.

:B:     Educates \`\`backticks'' -style double quotes and \`single' quotes.

:d:     Educates em-dashes.

:D:     Educates em-dashes and en-dashes, using old-school typewriter shorthand:
        (dash dash) for en-dashes, (dash dash dash) for em-dashes.

:i:     Educates em-dashes and en-dashes, using inverted old-school typewriter
        shorthand: (dash dash) for em-dashes, (dash dash dash) for en-dashes.

:e:     Educates ellipses.

:w:     Translates any instance of ``&quot;`` into a normal double-quote character.
        This should be of no interest to most people, but of particular interest
        to anyone who writes their posts using Dreamweaver, as Dreamweaver
        inexplicably uses this entity to represent a literal double-quote
        character. SmartyPants only educates normal quotes, not entities (because
        ordinarily, entities are used for the explicit purpose of representing the
        specific character they represent). The "w" option must be used in
        conjunction with one (or both) of the other quote options ("q" or "b").
        Thus, if you wish to apply all SmartyPants transformations (quotes, en-
        and em-dashes, and ellipses) and also translate ``&quot;`` entities into
        regular quotes so SmartyPants can educate them, you should pass the
        following to the smarty_pants attribute:
�1NcL@s�eZdZdZdZdZdZddddddd	d	ddd	d
dddddddd
d
dd
ddd
dddddd	dd	dddd
ddddddddddddddddddddd	dd	dd	d
ddd	dd
dd
ddddd�KZd dd�ZdS)!�
smartcharsu–u—u…u’u“”‘’u„”‚’u„“‚‘u
«»“”u
»«›‹u
«»‹›u‘’“”u””’’u
»»››)u« u »�“�”)�« � »rr)rru‹ u ›u
”“»«u„”‘’u
„”«»u「」『』u
«»’’u
«»‘’u
«»‚’u
«»„“u“„‘‚u„”’’)K�afzaf-x-altquot�bg�cazca-x-altquot�cszcs-x-altquot�dazda-x-altquot�dezde-x-altquotzde-ch�el�enzen-uk-x-altquot�eo�eszes-x-altquot�etzet-x-altquot�eu�fizfi-x-altquot�frzfr-x-altquotzfr-chzfr-ch-x-altquot�gl�hezhe-x-altquot�hrzhr-x-altquotZhsbz
hsb-x-altquot�hu�is�itzit-chzit-x-altquot�ja�ko�lt�lv�mk�nlznl-x-altquot�nb�nnznn-x-altquot�nozno-x-altquot�plzpl-x-altquot�ptzpt-br�ro�ru�shzsh-x-altquot�skzsk-x-altquot�slzsl-x-altquot�sqzsq-x-altquot�srzsr-x-altquot�svzsv-x-altquot�trztr-x-altquot�ukzuk-x-altquotzzh-cnzzh-twrcCsT||_z"|j|��\|_|_|_|_Wn&tyNd\|_|_|_|_Yn0dS)Nz""'')�language�quotes�lower�opquote�cpquote�osquote�csquote�KeyError)�selfr2�r;�>/usr/lib/python3.9/site-packages/docutils/utils/smartquotes.py�__init__�s�
�zsmartchars.__init__N)r)	�__name__�
__module__�__qualname__�endash�emdash�ellipsis�
apostropher3r=r;r;r;r<r�s��WrrcCs d�dd�tt|�||�D��S)N�cSsg|]}|�qSr;r;)�.0�tr;r;r<�
<listcomp>��zsmartyPants.<locals>.<listcomp>)�join�educate_tokens�tokenize)�text�attrr2r;r;r<�smartyPants�s�rOccsd}d}d}d}d}d}|dkr2d}d}d}d}n�|dkrLd}d}d}d}n�|dkrfd}d}d}d}nn|d	krtd}n`d
|vr�d}d|vr�d}d|vr�d}d
|vr�d}d|vr�d}d|vr�d}d|vr�d}d|vr�d}d}	|D�]$\}
}|
dks�|s�|Vq�|
dk�r|dd�}	|Vq�|dd�}t|�}|�r@t�dd|�}|dk�rTt|�}n&|dk�rht|�}n|dk�rzt|�}|�r�t|�}|�r�t||�}|dk�r�t||�}|�r�|	�	dd��	dd�}
t
|
||�dd�}|�r�t||�}|}	t|dd�}|Vq�dS)NFrT��2��3�z-1�q�b�B�d�D�i�e�w� �tag�literal���z&quot;�"�;�')�restore)�processEscapes�re�sub�
educateDashes�educateDashesOldSchool�educateDashesOldSchoolInverted�educateEllipses�educateBackticks�educateSingleBackticks�replace�
educateQuotes�stupefyEntities)Ztext_tokensrNr2Zconvert_quotZ	do_dashesZdo_backticksZ	do_quotesZdo_ellipsesZ
do_stupefyZprev_token_last_charZttyperMZ	last_char�contextr;r;r<rKs�









rKc	Cs�t|�}dddddd�}t�d|d|j|�}t�d	|d|j|�}t�d
|j|j|�}t�d|j|j|�}t�d|d
|j|�}t�d|d
|j|�}|�d�r�t�d|j|�}t�	d|tj
tjB�}|�d|j|�}|j|jk�rt�	dtj�}|�|j|�}t�	dtj�}|�|j|�}t�d|j|�}t�	d|tj
tjB�}|�d|j|�}t�	dtj
tjB�}|�|j|�}t�d|j|�}|S)Nz[([{]z[^\s]z)[-!"#\$\%'()*+,.\/:;<=>?\@\[\\\]\^_`{|}~]u3[-–—]|&[mn]dash;|&\#8211;|&\#8212;|&\#x201[34];u[\s​‌]|&nbsp;)�open�close�punctZdash�sepz^'(?=%s\\B)rtz^"(?=%s\\B)z"'(?=\w)z'"(?=\w)z#(%(open)s|%(dash)s)'(?=%(punct)s? )z\1%sz#(%(open)s|%(dash)s)"(?=%(punct)s? )rz'(?=\d{2}s)a�
                    (# ?<=  # look behind fails: requires fixed-width pattern
                      %(sep)s     |  # a whitespace char, or
                      %(open)s    |  # opening brace, or
                      %(dash)s       # em/en-dash
                    )
                    '                 # the quote
                    (?=\w|%(punct)s) # followed by a word character or punctuation
                    z\1z(?<=(\w|\d))'(?=\w)z(?<!\s)'rca{
                    (
                      %(sep)s     |  # a whitespace char, or
                      %(open)s    |  # zero width separating char, or
                      %(dash)s       # em/en-dash
                    )
                    "                 # the quote
                    (?=\w|%(punct)s) # followed by a word character or punctuation
                    z�
                    (
                    (?<!\s)" | # no whitespace before
                    "(?=\s)    # whitespace behind
                    )
                    ra)rrfrgr8r6r5r7�
startswithrD�compile�VERBOSE�UNICODE)	rMr2�smartZ
ch_classesZopening_secondary_quotes_regexZapostrophe_regexZclosing_secondary_quotes_regexZopening_primary_quotes_regexZclosing_primary_quotes_regexr;r;r<rotsV
�

�

�
�
�
�
�

�rocCs,t|�}t�d|j|�}t�d|j|�}|S)Nz``z'')rrfrgr5r6�rMr2rzr;r;r<rl�srlcCs,t|�}t�d|j|�}t�d|j|�}|S)N�`rc)rrfrgr7r8r{r;r;r<rm�s	rmcCs$t�dtj|�}t�dtj|�}|S�Nz---�--�rfrgrrArB�rMr;r;r<rh�srhcCs$t�dtj|�}t�dtj|�}|Sr})rfrgrrBrAr�r;r;r<ri�sricCs$t�dtj|�}t�dtj|�}|Sr}rr�r;r;r<rjsrjcCs$t�dtj|�}t�dtj|�}|S)Nz\.\.\.z\. \. \.)rfrgrrCr�r;r;r<rks
rkcCs|t|�}t�|jd|�}t�|jd|�}t�|jd|�}t�|jd|�}t�|jd|�}t�|jd|�}t�|j	d|�}|S)N�-r~rcraz...)
rrfrgrArBr7r8r5r6rCr{r;r;r<rp.s	rpFcCsFd}|r(|D]\}}|�||d�}qn|D]\}}|�||�}q,|S)N))z\\z&#92;)z\"z&#34;)z\'z&#39;)z\.z&#46;)z\-z&#45;)z\`z&#96;rP)rn)rMrdZreplacementsZchZrepr;r;r<reGsreccs�d}t|�}d}d�dg|�d|}t�d�}|�|�}d}|dur�|�d�rbd|�d�fVd	|�d
�fV|��}|�||���}q@|t|�kr�d||d�fVdS)Nr��|z(?:<(?:[^<>]z)*>)z([^<]*)(<[^>]*>)rPrMr^rR)�lenrJrfrw�search�group�end)rM�pos�length�depthZnested_tagsZtag_soupZtoken_matchZprevious_endr;r;r<rLgs


rL�__main__rEr��_z_([a-zA-Z0-9])_z_\1-cCsg|]}|�qSr;r;)rFZsubtagr;r;r<rH�rIrHr`z.Filter stdin making ASCII punctuation "smart".)�descriptionz-az--actionz,what to do with the input (see --actionhelp))�default�helpz-ez
--encoding�utf8z
text encodingz-lz
--languagez&text language (BCP47 tag), Default: %sz-qz--alternative-quotes�
store_truezuse alternative quote style)�actionr�z--doczprint documentationz--actionhelpzlist available actionsz--stylehelpzlist available quote stylesz--testzperform short self-testz;Available styles (primary open/close, secondary open/close)zlanguage tag   quotesz============   ======z%-14s %sc@s$eZdZdd�Zdd�Zdd�ZdS)�TestSmartypantsAllAttributescCsd|�td�d�|�td�d�|�td�d�|�td�d�|�td	�d
�|�td�d�dS)
Nz	1440-80'su1440-80’sz	1440-'80su1440-’80sz1440---'80su
1440–’80sz1960'su1960’szone two '60suone two ’60sz'60su’60s�ZassertEqualrO�r:r;r;r<�
test_dates�sz'TestSmartypantsAllAttributes.test_datescCs|�td�d�dS)Nz"Isn't this fun?"u“Isn’t this fun?”r�r�r;r;r<�test_educated_quotes�sz1TestSmartypantsAllAttributes.test_educated_quotescCsd}|�t|�|�dS)Nz<a src="foo">more</a>r�)r:rMr;r;r<�test_html_tags�sz+TestSmartypantsAllAttributes.test_html_tagsN)r>r?r@r�r�r�r;r;r;r<r��sr�z
-x-altquot)rNr2)r)r)r)r)F)JZ
__future__r�optionsZdefault_smartypants_attrrf�sys�objectrrOrKrorlrmrhrirjrkrprerLr>�	itertools�locale�	setlocale�LC_ALL�getdefaultlocaleZdefaultlanguager4rnrg�splitZ_subtags�popZ_basetag�ranger��n�combinations�tagsrJZ_tagr3�argparse�ArgumentParser�parser�add_argument�
parse_args�args�doc�print�__doc__Z
actionhelpZ	stylehelp�sorted�keys�key�testZunittestZTestCaser�Z
TestLoaderZloadTestsFromTestCaseZsuiteZTextTestRunner�runZalternative_quotesr2�stdin�read�decode�encodingrMr��encoder;r;r;r<�<module>>s�>vt
_




 *



�
�
�
��
�����
�
��

Youez - 2016 - github.com/yon3zu
LinuXploit