Your IP : 3.137.185.202


Current Path : /opt/alt/python35/lib64/python3.5/html/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/html/__pycache__/__init__.cpython-35.opt-1.pyc



��Yf��~@s�dZddlZddlmZddgZddd�Zddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJi"ZdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedd
dddddddddd!d#d%d'd)d+d-d/d1d3d5d7d9d;d=d?dAdCdEdGdIdfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�h~Z	d�d��Z
ejd��Zd�d�Z
dS)�z*
General functions for HTML manipulation.
�N)�html5�escape�unescapeTcCsd|jdd�}|jdd�}|jdd�}|r`|jdd�}|jd	d
�}|S)z�
    Replace special characters "&", "<" and ">" to HTML-safe sequences.
    If the optional flag quote is true (the default), the quotation mark
    characters, both double quote (") and single quote (') characters are also
    translated.
    �&z&amp;�<z&lt;�>z&gt;�"z&quot;�'z&#x27;)�replace)�sZquote�r�2/opt/alt/python35/lib64/python3.5/html/__init__.pyrsu��
�
�u€���u‚�uƒ�u„�u…�u†�u‡�uˆ�u‰�uŠ�u‹�uŒ���uŽ�����u‘�u’�u“�u”�u•�u–�u—�u˜�u™�uš�u›�uœ���už�uŸ���������������������������i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��	i��	i��
i��
i��i��i��i��i��
i��
i��i��i��i��i��i��cCsJ|jd�}|ddkr�|ddkrTt|dd�jd�d�}nt|dd�jd��}|tkr�t|Sd|ko�d	kns�|d
kr�dS|tkr�dSt|�S|tkr�t|Sxbtt|�ddd�D]<}|d|�tkr�t|d|�||d�Sq�Wd
|SdS)Nr5r�#ZxXr6�;r?i�i��i��u��r���)	�group�int�rstrip�_invalid_charrefs�_invalid_codepoints�chr�_html5�range�len)rZnum�xrrr
�_replace_charref[s$%(
#$r_z7&(#[0-9]+;?|#[xX][0-9a-fA-F]+;?|[^\t\n\f <&#;]{1,32};?)cCs d|kr|Stjt|�S)a^
    Convert all named and numeric character references (e.g. &gt;, &#62;,
    &x3e;) in the string s to the corresponding unicode characters.
    This function uses the rules defined by the HTML 5 standard
    for both valid and invalid character references, and the list of
    HTML 5 named character references defined in html.entities.html5.
    r)�_charref�subr_)rrrr
rzs)�__doc__�reZ_reZ
html.entitiesrr[�__all__rrXrYr_�compiler`rrrrr
�<module>sp$$$

?>