$22 GRAYBYTE WORDPRESS FILE MANAGER $88

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.160.161 | ADMIN IP 216.73.216.86
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python310/lib64/python3.10/html/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/html/__pycache__//parser.cpython-310.opt-1.pyc
o

0�i�R�@s�dZddlZddlZddlmZdgZe�d�Ze�d�Ze�d�Z	e�d�Z
e�d	�Ze�d
�Ze�d�Z
e�d�Ze�d
�Ze�d�Ze�dej�Ze�dej�Ze�dej�Ze�d�Ze�d�ZGdd�dej�ZdS)zA parser for HTML and XHTML.�N)�unescape�
HTMLParserz[&<]z
&[a-zA-Z#]z%&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]z)&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]z	<[a-zA-Z]z
</[a-zA-Z]�>z--!?>z-?>z0([a-zA-Z][^\t\n\r\f />]*)(?:[\t\n\r\f ]|/(?!>))*a{
  (
    (?<=['"\t\n\r\f /])[^\t\n\r\f />][^\t\n\r\f /=>]*  # attribute name
   )
  ([\t\n\r\f ]*=[\t\n\r\f ]*        # value indicator
    ('[^']*'                        # LITA-enclosed value
    |"[^"]*"                        # LIT-enclosed value
    |(?!['"])[^>\t\n\r\f ]*         # bare value
    )
   )?
  (?:[\t\n\r\f ]|/(?!>))*           # possibly followed by a space
a
  [a-zA-Z][^\t\n\r\f />]*           # tag name
  [\t\n\r\f /]*                     # optional whitespace before attribute name
  (?:(?<=['"\t\n\r\f /])[^\t\n\r\f />][^\t\n\r\f /=>]*  # attribute name
    (?:[\t\n\r\f ]*=[\t\n\r\f ]*    # value indicator
      (?:'[^']*'                    # LITA-enclosed value
        |"[^"]*"                    # LIT-enclosed value
        |(?!['"])[^>\t\n\r\f ]*     # bare value
       )
     )?
    [\t\n\r\f /]*                   # possibly followed by a space
   )*
   >?
aF
  <[a-zA-Z][^\t\n\r\f />\x00]*       # tag name
  (?:[\s/]*                          # optional whitespace before attribute name
    (?:(?<=['"\s/])[^\s/>][^\s/=>]*  # attribute name
      (?:\s*=+\s*                    # value indicator
        (?:'[^']*'                   # LITA-enclosed value
          |"[^"]*"                   # LIT-enclosed value
          |(?!['"])[^>\s]*           # bare value
         )
        \s*                          # possibly followed by a space
       )?(?:\s|/(?!>))*
     )*
   )?
  \s*                                # trailing whitespace
z#</\s*([a-zA-Z][-.a-zA-Z0-9:_]*)\s*>c@seZdZdZdZdZddd�dd�Zd	d
�Zdd�Zd
d�Z	dZ
dd�Zdd�dd�Zdd�Z
d>dd�Zdd�Zdd�Zd>dd�Zd?d d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Zd<d=�Z dS)@raEFind tags and other markup and call handler functions.

    Usage:
        p = HTMLParser()
        p.feed(data)
        ...
        p.close()

    Start tags are handled by calling self.handle_starttag() or
    self.handle_startendtag(); end tags by self.handle_endtag().  The
    data between tags is passed from the parser to the derived class
    by calling self.handle_data() with the data as argument (the data
    may be split up in arbitrary chunks).  If convert_charrefs is
    True the character references are converted automatically to the
    corresponding Unicode character (and self.handle_data() is no
    longer split in chunks), otherwise they are passed by calling
    self.handle_entityref() or self.handle_charref() with the string
    containing respectively the named or numeric reference as the
    argument.
    )ZscriptZstyleZxmpZiframeZnoembedZnoframes)Ztextarea�titleTF)�convert_charrefs�	scriptingcCs||_||_|��dS)azInitialize and reset this instance.

        If convert_charrefs is true (the default), all character references
        are automatically converted to the corresponding Unicode characters.

        If *scripting* is false (the default), the content of the
        ``noscript`` element is parsed normally; if it's true,
        it's returned as is without being parsed.
        N)rr�reset)�selfrr�r
�2/opt/alt/python310/lib64/python3.10/html/parser.py�__init__vs
zHTMLParser.__init__cCs4d|_d|_t|_d|_d|_d|_tj�	|�dS)z1Reset this instance.  Loses all unprocessed data.�z???NT)
�rawdata�lasttag�interesting_normal�interesting�
cdata_elem�_support_cdata�
_escapable�_markupbase�
ParserBaser�r	r
r
rr�szHTMLParser.resetcCs|j||_|�d�dS)z�Feed data to the parser.

        Call this as often as you want, with as little or as much text
        as you want (may include '\n').
        rN)r�goahead�r	�datar
r
r�feed�szHTMLParser.feedcCs|�d�dS)zHandle any buffered data.�N)rrr
r
r�close�szHTMLParser.closeNcCs|jS)z)Return full source of start tag: '<...>'.)�_HTMLParser__starttag_textrr
r
r�get_starttag_text�szHTMLParser.get_starttag_text��	escapablecCst|��|_||_|jdkrt�d�|_dS|r*|js*t�d|jtjtjB�|_dSt�d|jtjtjB�|_dS)N�	plaintextz\Zz&|</%s(?=[\t\n\r\f />])z</%s(?=[\t\n\r\f />]))	�lowerrr�re�compilerr�
IGNORECASE�ASCII)r	�elemr!r
r
r�set_cdata_mode�s




�

�zHTMLParser.set_cdata_modecCst|_d|_d|_dS)NT)rrrrrr
r
r�clear_cdata_mode�s
zHTMLParser.clear_cdata_modecCs
||_dS)aEnable or disable support of the CDATA sections.
        If enabled, "<[CDATA[" starts a CDATA section which ends with "]]>".
        If disabled, "<[CDATA[" starts a bogus comments which ends with ">".

        This method is not called by default. Its purpose is to be called
        in custom handle_starttag() and handle_endtag() methods, with
        value that depends on the adjusted current node.
        See https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
        for details.
        N)r)r	�flagr
r
r�_set_support_cdata�s
zHTMLParser._set_support_cdatacCs|j}d}t|�}||k�rU|jr;|js;|�d|�}|dkr:|�dt||d��}|dkr8t�d��	||�s8�n|}n|j
�	||�}|rI|��}n|jrN�n|}||kro|jrf|jrf|�
t|||���n	|�
|||��|�||�}||kr{�n�|j}|d|��r�t�||�r�|�|�}	n@|d|�r�|�|�}	n5|d|�r�|�|�}	n*|d|�r�|�|�}	n|d	|�r�|�|�}	n|d
|ks�|r�|�
d�|d
}	n�n�|	dk�r�|sِn|t�||�r�n�|d|��r|d|kr�|�
d�n�t�||�r�n�|�||dd��n�|d|��r0|}dD]}
|�|
|d
��r"|t|
�8}n�q|�||d
|��nW|d|��rF|j�rF|�||dd��nA|||d���dk�r_|�||dd��n(|d	|��rq|�||dd��n|d|��r�|�||dd��nt d��|}	|�||	�}n�|d|��r�t!�||�}|�r�|�"�dd�}|�#|�|�$�}	|d|	d
��s�|	d
}	|�||	�}q	d||d�v�r�|�
|||d��|�||d�}nu|d|��rQt%�||�}|�r|�"d
�}|�&|�|�$�}	|d|	d
��s	|	d
}	|�||	�}q	t'�||�}|�r;|�r:|�"�||d�k�r:|�$�}	|	|k�r2|}	|�||d
�}n|d
|k�rP|�
d�|�||d
�}nn||ks|�r�||k�r�|j�rq|j�rq|�
t|||���n	|�
|||��|�||�}||d�|_dS)Nr�<�&�"z[\t\n\r\f ;]z</�<!--z<?z<!r�)z--!z--�-��	<![CDATA[��	�	<!doctypezwe should not get here!z&#����;)(r�lenrr�find�rfind�maxr$r%�searchr�startr�handle_datarZ	updatepos�
startswith�starttagopen�match�parse_starttag�parse_endtag�
parse_comment�parse_pi�parse_html_declaration�
endtagopen�handle_comment�endswithr�unknown_declr#�handle_decl�	handle_pi�AssertionError�charref�group�handle_charref�end�	entityref�handle_entityref�
incomplete)r	rSr�i�n�jZampposrCrA�k�suffix�namer
r
rr�s�
��







�




�}zHTMLParser.goaheadcCsT|j}|||d�dkr|�|�S|||d�dkr<|jr<|�d|d�}|dkr-dS|�||d|��|dS|||d���d	kre|�d
|d�}|dkrVdS|�||d|��|dS|||d�d
kr�|�d
|d�}|dkr}dS||ddkr�|�||d|d��|dS|�||d|��|dS|�|�S)Nr3r0r6r4z]]>rr8r5r7rr1rz<![�])	rrFrr;rLr#rMrJ�parse_bogus_comment)r	rWrrYZgtposr
r
rrHNs2
�
z!HTMLParser.parse_html_declarationcCs\|j}t�||d�}|st�||d�}|sdS|r*|��}|�||d|��|��S)Nr3r8)r�commentcloser>�commentabruptcloserCr?rJrS)r	rW�reportrrCrYr
r
rrFpszHTMLParser.parse_commentrcCsD|j}|�d|d�}|dkrdS|r|�||d|��|dS)Nrr1r8r)rr;rJ)r	rWrar�posr
r
rr^szHTMLParser.parse_bogus_commentcCsH|j}t�||d�}|sdS|��}|�||d|��|��}|S)Nr1r8)r�picloser>r?rNrS�r	rWrrCrYr
r
rrG�szHTMLParser.parse_picCsd|_|�|�}|dkr|S|j}|||�|_g}t�||d�}|��}|�d���|_}||kr�t	�||�}|s=nS|�ddd�\}	}
}|
sLd}n-|dd�dkr^|dd�kssn|dd�dkrq|dd�krynn|dd�}|rt
|�}|�|	��|f�|��}||ks4|||���}|dvr�|�
�\}
}d	|jvr�|
|j�d	�}
t|j�|j�d	�}n|t|j�}|�|||��|S|�d
�r�|�||�|S|�||�||jvs�|jr�|dks�|dkr�|j|d
d�|S||jv�r|j|dd�|S)Nrrr1r5�'r8�")r�/>�
rgZnoscriptr"Fr T)r�check_for_whole_start_tagr�tagfind_tolerantrCrSrQr#r�attrfind_tolerantr�append�stripZgetpos�countr:r<r@rK�handle_startendtag�handle_starttag�CDATA_CONTENT_ELEMENTSrr)�RCDATA_CONTENT_ELEMENTS)r	rW�endposr�attrsrCrZ�tag�m�attrname�restZ	attrvaluerS�lineno�offsetr
r
rrD�sd
&(�

�
	�
��zHTMLParser.parse_starttagcCs6|j}t�||d�}|��}||ddkrdS|S)Nrrr8)r�locatetagendrCrSrdr
r
rri�sz$HTMLParser.check_for_whole_start_tagcCs�|j}|�d|d�dkrdSt�||�s*||d|d�dkr%|dS|�|�St�||d�}|��}||ddkr@dSt�||d�}|�d��	�}|�
|�|��|S)Nrr1rr8r5r)rr;rIrCr^r{rSrjrQr#�
handle_endtagr*)r	rWrrCrYrur
r
rrE�s 

zHTMLParser.parse_endtagcCs|�||�|�|�dS�N)rpr|�r	rurtr
r
rro�szHTMLParser.handle_startendtagcC�dSr}r
r~r
r
rrp��zHTMLParser.handle_starttagcCrr}r
)r	rur
r
rr|r�zHTMLParser.handle_endtagcCrr}r
�r	r\r
r
rrRr�zHTMLParser.handle_charrefcCrr}r
r�r
r
rrU	r�zHTMLParser.handle_entityrefcCrr}r
rr
r
rr@
r�zHTMLParser.handle_datacCrr}r
rr
r
rrJr�zHTMLParser.handle_commentcCrr}r
)r	Zdeclr
r
rrMr�zHTMLParser.handle_declcCrr}r
rr
r
rrNr�zHTMLParser.handle_picCrr}r
rr
r
rrLr�zHTMLParser.unknown_decl)T)r)!�__name__�
__module__�__qualname__�__doc__rqrrrrrrrrr)r*r,rrHrFr^rGrDrirErorpr|rRrUr@rJrMrNrLr
r
r
rrZs@
	

"
9
)r�r$rZhtmlr�__all__r%rrVrTrPrBrIrcr_r`rj�VERBOSErkr{Zlocatestarttagend_tolerantZ	endendtagZ
endtagfindrrr
r
r
r�<module>s6











�
��



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 May 2026 11.11 PM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
3.261 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
2.629 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
__init__.cpython-310.pyc
3.261 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
entities.cpython-310.opt-1.pyc
141.061 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
entities.cpython-310.opt-2.pyc
141.014 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
entities.cpython-310.pyc
141.061 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
parser.cpython-310.opt-1.pyc
12.834 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
parser.cpython-310.opt-2.pyc
10.839 KB
17 Apr 2026 11.34 AM
root / linksafe
0644
parser.cpython-310.pyc
13.271 KB
17 Apr 2026 11.34 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF