Your IP : 3.145.164.205


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/string.cpython-313.opt-1.pyc

�

1}g
.����Sr/SQrSSKrSrSrSr\\-rSr\S-S	-rS
r	Sr
\\-\
-\-rSSjrSSK
rSS
KJr 0r"SS5r\R)5 "SS5rg)anA collection of string constants.

Public module variables:

whitespace -- a string containing all ASCII whitespace
ascii_lowercase -- a string containing all ASCII lowercase letters
ascii_uppercase -- a string containing all ASCII uppercase letters
ascii_letters -- a string containing all ASCII letters
digits -- a string containing all ASCII decimal digits
hexdigits -- a string containing all ASCII hexadecimal digits
octdigits -- a string containing all ASCII octal digits
punctuation -- a string containing all ASCII punctuation characters
printable -- a string containing all ASCII characters considered printable

)�
ascii_letters�ascii_lowercase�ascii_uppercase�capwords�digits�	hexdigits�	octdigits�	printable�punctuation�
whitespace�	Formatter�Template�Nz 	

�abcdefghijklmnopqrstuvwxyz�ABCDEFGHIJKLMNOPQRSTUVWXYZ�
0123456789�abcdef�ABCDEF�01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~c��U=(d SR[[RUR	U555$)aucapwords(s [,sep]) -> string

Split the argument into words using split, capitalize each
word using capitalize, and join the capitalized words using
join.  If the optional second argument sep is absent or None,
runs of whitespace characters are replaced by a single space
and leading and trailing whitespace are removed, otherwise
sep is used to split and join the words.

� )�join�map�str�
capitalize�split)�s�seps  �-/opt/alt/python313/lib64/python3.13/string.pyrr%s,��
�J�3���S���������>�?�?�)�ChainMapc�^�\rSrSrSrSrSrSr\Rr
U4SjrSrSr
\4S	jr\4S
jrSrSrS
rU=r$)r
�9z.A string class for supporting $-substitutions.�$z(?a:[_a-z][_a-z0-9]*)Nc	�|>�[TU]5 SUR;a
URnOZ[R
"UR5nURnUR=(d URnSUSUSUSUS3	n[R"XR[R-5Ulg)N�patternz
            z(?:
              (?P<escaped>zC)  |   # Escape sequence of two delimiters
              (?P<named>zJ)       |   # delimiter and a Python identifier
              {(?P<braced>z�)} |   # delimiter and a braced identifier
              (?P<invalid>)             # Other ill-formed delimiter exprs
            )
            )�super�__init_subclass__�__dict__r%�_re�escape�	delimiter�	idpattern�braceidpattern�compile�flags�VERBOSE)�clsr%�delim�id�bid�	__class__s     �rr'�Template.__init_subclass__Es����
��!�#�����$��k�k�G��J�J�s�}�}�-�E����B��$�$�5��
�
�C�
�
�G�� �'�"�����5�!
�	�G��k�k�'�9�9�s�{�{�+B�C��rc��Xlg�N��template)�selfr:s  r�__init__�Template.__init__Ws�� �
rc���URS5nURSURSS9nU(dSnSnO+U[SR	USS55-
n[U5n[SXT4-5e)N�invalidT)�keepends�����z.Invalid placeholder in string: line %d, col %d)�startr:�
splitlines�lenr�
ValueError)r;�mo�i�lines�colno�linenos      r�_invalid�Template._invalid\s|���H�H�Y����
�
�b�q�!�,�,�d�,�;����E��F���B�G�G�E�#�2�J�/�0�0�E���Z�F��I� ��)�*�	*rc�^^�T[LaUmOU(a[UT5mUU4SjnTRRUTR5$)Nc�&>�URS5=(d URS5nUb[TU5$URS5bTR$URS5bTRU5 [	STR
5e�N�named�braced�escapedr?�#Unrecognized named group in pattern)�grouprr+rMrGr%�rHrR�mappingr;s  ��r�convert�$Template.substitute.<locals>.convertns����H�H�W�%�;����(�);�E�� ��7�5�>�*�*��x�x�	�"�.��~�~�%��x�x�	�"�.��
�
�b�!��B�!�\�\�+�
+r��_sentinel_dict�	_ChainMapr%�subr:�r;rX�kwsrYs``  r�
substitute�Template.substitutehsA����n�$��G�
���W�-�G�
	+��|�|�������7�7rc�^^�T[LaUmOU(a[UT5mUU4SjnTRRUTR5$)Nc�f>�URS5=(d URS5nUb[TU5$URS5bTR$URS5bUR5$[	STR
5e![a UR5s$f=frQ)rVr�KeyErrorr+rGr%rWs  ��rrY�)Template.safe_substitute.<locals>.convert�s�����H�H�W�%�;����(�);�E�� �&��w�u�~�.�.��x�x�	�"�.��~�~�%��x�x�	�"�.��x�x�z�!��B�!�\�\�+�
+��
 �&��8�8�:�%�&�s�
B�B0�/B0r[r_s``  r�safe_substitute�Template.safe_substitute{sA����n�$��G�
���W�-�G�	+��|�|�������7�7rc�$�URRUR5HgnURS5b gURS5bM+URS5bM?URS5bMS[	SUR5e g)Nr?FrRrSrTrUT)r%�finditerr:rVrG)r;rHs  r�is_valid�Template.is_valid�s|���,�,�'�'��
�
�6�B��x�x�	�"�.������!�)��H�H�X�&�.��H�H�Y�'�/�!�!F��L�L�"�"�7�rc�l�/nURRUR5H�nURS5=(d URS5nUbX1;aUR	U5 MGUbMLURS5bM`URS5bMt[SUR5e U$)NrRrSr?rTrU)r%rjr:rV�appendrG)r;�idsrHrRs    r�get_identifiers�Template.get_identifiers�s������,�,�'�'��
�
�6�B��H�H�W�%�;����(�);�E�� �U�%5��
�
�5�!��-��H�H�Y�'�/��H�H�Y�'�/�!�!F��L�L�"�"�7��
rr9)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r+r,r-r)�
IGNORECASEr/r'r<rMr\rargrkrp�__static_attributes__�
__classcell__)r5s@rr
r
9sS���8��I�
)�I��N��N�N�E�D�$!�

*�"0�8�&'5�8�*��rr
c�P�\rSrSrSrSrS
SjrSrSrSr	Sr
S	rS
rSr
g)r�c�&�URXU5$r8)�vformat)r;�
format_string�args�kwargss    r�format�Formatter.format�s���|�|�M��8�8rc�h�[5nURXX4S5upVURXBU5 U$)N�)�set�_vformat�check_unused_args)r;r~rr��	used_args�result�_s       rr}�Formatter.vformat�s2���E�	��M�M�-�v�!�L�	�����y��7��
rc
�8�US:a[S5e/nURU5H�up�p�U(aURU5 U	cM#U	S:Xa!USLa[S5e[U5n	US-
nO)U	R	5(aU(a[S5eSnURX�U5up�UR
U
5 URX�5nURX�UXES-
US9up�URURX�55 M� SRU5U4$)NrzMax string recursion exceededrBFzJcannot switch from manual field specification to automatic field numberingrA)�auto_arg_index)rG�parsernr�isdigit�	get_field�add�
convert_fieldr��format_fieldr)r;r~rr�r��recursion_depthr�r��literal_text�
field_name�format_spec�
conversion�obj�arg_useds              rr��Formatter._vformat�s=���Q���<�=�=����
�
�=�)�
>�L�k���
�
�l�+��%�
��#�%��.�(�*5�6�6�"%�^�!4�J�"�a�'�N��'�'�)�)�%�(�*5�6�6�
&+�N�!%���z�� H�
���
�
�h�'��(�(��9��/3�m�m��v��q�0�#1�/<�/3�+���
�
�d�/�/��A�B�W*�Z�w�w�v���.�.rc�<�[U[5(aX!$X1$r8)�
isinstance�int)r;�keyrr�s    r�	get_value�Formatter.get_value�s���c�3����9���;�rc��gr8�)r;r�rr�s    rr��Formatter.check_unused_argss��rc��[X5$r8)r�)r;�valuer�s   rr��Formatter.format_fields
���e�)�)rc��UcU$US:Xa[U5$US:Xa[U5$US:Xa[U5$[SR	U55e)Nr�r�az"Unknown conversion specifier {0!s})r�repr�asciirGr�)r;r�r�s   rr��Formatter.convert_fieldsZ�����L�
�3�
��u�:��
�3�
���;��
�3�
���<���=�D�D�Z�P�Q�Qrc�.�[R"U5$r8)�_string�formatter_parser)r;r~s  rr��Formatter.parses���'�'�
�6�6rc��[R"U5upEURXBU5nUHupxU(a
[Xh5nMXhnM Xd4$r8)r��formatter_field_name_splitr��getattr)	r;r�rr��first�restr��is_attrrIs	         rr��Formatter.get_field(sO���8�8��D����n�n�U�&�1���J�G���c�o���f��	��z�rr�N)r)rrrsrtrur�r}r�r�r�r�r�r�r�rxr�rrrr�s6��9��!"�3/�l�
�*�
R�(7�
rrr8)rv�__all__r�rrrrrrrr
r	r�rer)�collectionsr r]r\r
r'rr�rr�<module>r�s���� 2����
�.��.���/�1�
�	���X���(�	��	�5���]�"�[�0�:�=�	�
@��-���r�r�l	����y�yr

?>