| Server IP : 107.13.46.68 / Your IP : 216.73.216.232 Web Server : Apache/2.4.58 (Ubuntu) System : Linux mariOS 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/tinycss2/__pycache__/ |
Upload File : |
�
m�cw �
�� � d � Z d� Zd� Zd� Zd� Zd� Z edD � �cg c]
} dD ] }| |f�� � c}} dD � �cg c]
} d D ] }| |f�� � c}} z d
D � �cg c]
} dD ] }| |f�� � c}} z dD � �cg c]
} d
D ] }| |f�� � c}} z dD �cg c] }d|f�� c}z dD �cg c] }d|f�� c}z dD � cg c] } | df�� c} z g d�z � Zyc c}} w c c}} w c c}} w c c}} w c c}w c c}w c c} w )c �T � g }t | |j � dj |� S )a� Serialize nodes to CSS syntax.
This should be used for :term:`component values`
instead of just :meth:`tinycss2.ast.Node.serialize` on each node
as it takes care of corner cases such as ``;`` between declarations,
and consecutive identifiers
that would otherwise parse back as the same token.
:type nodes: :term:`iterable`
:param nodes: An iterable of :class:`tinycss2.ast.Node` objects.
:returns: A :obj:`string <str>` representing the nodes.
� )�
_serialize_to�append�join)�nodes�chunkss �5/usr/lib/python3/dist-packages/tinycss2/serializer.py� serializer
s% � � �F��%����'�
�7�7�6�?�� c � � | dk( ry| dd dk( rdt | dd � z S | d dk( rd}| dd } nd}| d }||d v st |� d
kD r|n+|dk( rdn$|d
k( rdn|dk( rdn|dv rdt |� z nd|z z
}|t | dd � z
}|S )aX Serialize any string as a CSS identifier
:type value: :obj:`str`
:param value: A string representing a CSS value.
:returns:
A :obj:`string <str>` that would parse as an
:class:`tinycss2.ast.IdentToken` whose
:attr:`tinycss2.ast.IdentToken.value` attribute equals the passed
``value`` argument.
�-z\-N� z--� � r �5abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ� �
�\A �
�\D ��\C �
0123456789z\%X �\)�serialize_name�ord)�value�result�cs r �serialize_identifierr s� � �
��|���R�a�y�D���n�U�1�2�Y�/�/�/��Q�x�3�����a�b� ����
�a��A�
�
� 0� 1�47��F�T�M�
��t�)���t�)���t�)����-��#�a�&���q���F� �n�U�1�2�Y�'�'�F��Mr c �2 � dj d� | D � � S )Nr c 3 �x K � | ]2 }|d v st |� dkD r|n|dk( rdn|dk( rdn|dk( rdnd|z �� �4 y �w)
z@abcdefghijklmnopqrstuvwxyz-_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZr r r r r r r r N)r ��.0r s r � <genexpr>z!serialize_name.<locals>.<genexpr>: s[ � �� � �
�
� 0� 1�47��F�T�M�
��t�)���t�)���t�)���q�� ��s �8:�r �r s r r r 9 �"