%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/extformat.cpython-312.pyc

�

��d����dZdZ	ddlmZddlZd�Z		iifd�Z
d�Zed	k(r?dd
l
mZiZdd�ZddlmZd
diZdZdZGd�d�Zeed��dd�Zed�yy#e$r!ddlmZddlZeje�Z[[Y�{wxYw)z3.3.0z.Apparently not used anywhere, purpose unknown!�)�	tokenprog)�TokenNc�n�tj||�}|�t||��||j�fS)N)r�match�
ValueError�end)�text�posrs   �9/usr/lib/python3/dist-packages/reportlab/lib/extformat.py�_matchorfailrs4��	����s�	#��	�M��D�#�.�.�
�u�y�y�{���c�8�|}i}g}d}d}	|jd|�}|dkrn�||dz}	|	dk(r�|j|||�|dzd}
}|
r>t||�\}}|jd\}}
|||
}|dk(r|
dz}
n
|dk(r|
dz
}
|
r�>d|z}|dz
}t	||dz|dz
||�||<|jd	|z�n!|dz|	dk(z}|j|||�|}��|t|�kr|j||d�d
j
|�|zS)Nr��%�(���)z__superformat_%dz%%(%s)�)�find�appendr�regs�eval�len�join)�_format�L�G�format�S�chunksr
�n�pc�nextchar�levelr�tstart�tend�token�vname�ncs                 r�
dictformatr+sd��
����
�������
�{�{�3���"��!�V�U�
�B�q�D�\�(�
��_�	�=�=���B�� ��1��a��3�	��f�c�*�J�E�3��:�:�a�=�L�F�D��6�$��E���|�U�1�W�U�	�#��u�Q�w�u�
���!�5���6�1��6�"�Q�$�s�1�u�%�a��*�1�U�8�	�=�=��E�!�"�
�1��h��m��2�	�=�=���B�� �	�3�+	�.�#�f�+��v�}�}�V�C�D�\�2�	�����A��r
c�n�tjd�}t||j|j�S)z<Evaluate and substitute the appropriate parts of the string.r)�sys�	_getframer+�f_locals�	f_globals)r�frames  r�magicformatr2:s'��	���q�	���6�%�.�.�%�/�/�:�:r
�__main__)�DecimalFormatterc�z�	t||f}||�S#t$rt|||��x}t||f<Y�,wxYw)N)�places�
decimalSep�thousandSep)�_DF�KeyErrorr4)r"�dp�ds�ts�_dfs     r�dfr?BsN��O�	�R��U��3�

�Q��-��
�O�&�b�B�2�N�N�3��R��U��O�s��":�:)r2�abc)�ab�cg���OAg������S@c��eZdZdZy)�dingorN)�__name__�
__module__�__qualname__�a�r
rrDrDNs���!r
rDz�
$%%(df(x,dp=3))s --> $%(df(x,dp=3))s
$%%(df(x,dp=2,ds=',',ts='.'))s --> $%(df(x,dp=2,ds=',',ts='.'))s
%%(percent).2f%%%% --> %(percent).2f%%
%%(dingo.a)s --> %(dingo.a)s
%%(Z['abc'][0])s --> %(Z['abc'][0])s
c��dd�}|d�y)Nc�,�ttd��y)Nzbb=%(bb)s Z=%(Z)r)�printr2)�bbs r�func1zfunc0.<locals>.func1Xs���+�)�
*�,r
�BB)rrI)�aarNs  r�func0rQWs��-���+r
�AA)r�.�,)r)�__version__�__doc__�tokenizer�ImportErrorr�re�compiler-rr+r2rE�reportlab.lib.formattersr4r9r?�reportlab.lib.extformat�Z�x�percentrDrLrQrIr
r�<module>r`s���
��<������
�
�� �D;�
�Z��6����1�	�:�����	
�������	����t��9��q���
�
�R�Z�Z��
��
�B�	�s�A"�"#B�B

Zerion Mini Shell 1.0