Edit File: __init__.cpython-38.pyc
U ����@��d��������������������~���@���s���d�Z�ddlZddlmZ�ddgZd�dd�Zdd d ddd ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*�"Zd+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{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 e�d��Zd�d��Z dS�)�z* General functions for HTML manipulation. �����N)�html5�escape�unescapeTc�����������������C���sD���|���dd�}�|���dd�}�|���dd�}�|r@|���dd�}�|���d 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&�<z<�>z>�"z"�'z')�replace)�sZquote��r����2/opt/alt/python38/lib64/python3.8/html/__init__.pyr������s���������� 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���Ÿ)"r���� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������r���r���r���r���r���r���r���r���r���r���r ���r!���r"���r#���r$���r%���r&���r'���r(���r)���r*���r+���r,���r-���r.���r/���r0���r1���r2���r3���r4���r5���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�����c�����������������C���s����|���d�}�|�d�dkr�|�d�dkr<t|�dd����d�d�}nt|�dd����d��}|tkrbt|�S�d|��krvd ks�n�|d kr�dS�|tkr�dS�t|�S�|�tkr�t|��S�tt|��d�dd �D�]4}|�d�|��tkr�t|�d�|���|�|d������S�q�d|��S�d�S�)Nr6���r����#ZxXr7����;r@���i����i����rR���r��������r���) �group�int�rstrip�_invalid_charrefs�_invalid_codepoints�chr�_html5�range�len)r���Znum�xr���r���r ����_replace_charref[���s$���� "ra���z7&(#[0-9]+;?|#[xX][0-9a-fA-F]+;?|[^\t\n\f <&#;]{1,32};?)c�����������������C���s���d|�kr|�S�t��t|��S�)a^�� Convert all named and numeric character references (e.g. >, >, &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�subra���)r���r���r���r ���r���z���s����)T)�__doc__�reZ_reZ html.entitiesr���r]����__all__r���rZ���r[���ra����compilerb���r���r���r���r���r ����<module>���sR�� �'����������������������������������������������������������������������������������������������������������������