403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.52
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/css_parser/css/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/css_parser/css/__pycache__/csscomment.cpython-312.pyc
�

��3e~��t�dZddlmZmZmZmZdgZdZdZddl	m
Z
ddlZddlZ
Gd	�de
j�Zy)
z�CSSComment is not defined in DOM Level 2 at all but a css_parser defined
class only.

Implements CSSRule which is also extended for a CSSComment rule type.
�)�unicode_literals�division�absolute_import�print_function�
CSSComment�restructuredtextz$Id$�)�cssruleNc���eZdZdZ		d�fd�	Zd�Zd�Zd�Z�fd�Ze	eed��Z
e	d	�d
��Ze	d��Z�xZ
S)
rzT
    Represents a CSS comment (css_parser only).

    Format::

        /*...*/
    c�r��tt|�||��d|_|r|j	|�||_y)N)�
parentRule�parentStyleSheet)�superr�__init__�_cssText�_setCssText�	_readonly)�self�cssTextr
r�readonly�	__class__s     ��;/usr/lib/python3/dist-packages/css_parser/css/csscomment.pyrzCSSComment.__init__s>���
�j�$�(�J�:J�	)�	L���
�����W�%�!���c�P�d|jj�d|j�d�S)Nzcss_parser.css.z	(cssText=�))r�__name__r�rs r�__repr__zCSSComment.__repr__%s ���N�N�#�#��L�L��	rc�`�d|jj|jt|�fzS)Nz-<css_parser.css.%s object cssText=%r at 0x%x>)rrr�idrs r�__str__zCSSComment.__str__*s0��>��N�N�#�#��L�L��t�H�B��	rc�@�tjj|�S)z#Return serialized property cssText.)�
css_parser�ser�
do_CSSCommentrs r�_getCssTextzCSSComment._getCssText0s���~�~�+�+�D�1�1rc���tt|�|�|j|�}|j	|�}|j	|�}|r*|j|�|jjk7s|rH|jjd|j|�ztjj��y|j|�|_y)ah
        :param cssText:
            textual text to set or tokenlist which is not tokenized
            anymore. May also be a single token for this rule

        :exceptions:
            - :exc:`~xml.dom.SyntaxErr`:
              Raised if the specified CSS string value has a syntax error and
              is unparsable.
            - :exc:`~xml.dom.InvalidModificationErr`:
              Raised if the specified CSS string value represents a different
              type of rule than the current one.
            - :exc:`~xml.dom.NoModificationAllowedErr`:
              Raised if the rule is readonly.
        z CSSComment: Not a CSSComment: %r)�errorN)rrr�
_tokenize2�
_nexttoken�_type�_prods�COMMENT�_logr(�	_valuestr�xml�dom�InvalidModificationErr�_tokenvaluer)rr�	tokenizer�commenttoken�
unexpectedrs     �rrzCSSComment._setCssText4s���� 	�j�$�+�G�4��O�O�G�,�	����y�1���_�_�Y�/�
���:�:�l�#�t�{�{�':�':�:���I�I�O�O�>� �N�N�7�3�4�"%�'�'�"@�"@�
�
B�!�,�,�\�:�D�Mrz1The parsable textual representation of this rule.)�docc��|jS)N)r-rs r�<lambda>zCSSComment.<lambda>Vs
�����rz=The type of this rule, as defined by a CSSRule type constant.c��y)NT�rs rr9zCSSComment.<lambda>[s�r)NNNF)r�
__module__�__qualname__�__doc__rrr!r&r�propertyr�type�
wellformed�
__classcell__)rs@rrrs^����15�16�	"��
�2�;�>�{�K�N�P�G��-�)�*�D�
�+�,�Jr)r>�
__future__rrrr�__all__�
__docformat__�__version__�r
r#�xml.domr0�CSSRulerr;rr�<module>rJs?���
S�R��.��"�
������J-����J-r

Youez - 2016 - github.com/yon3zu
LinuXploit