%PDF- %PDF-
Mini Shell

Mini Shell

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

�

$.Vf���6�ddlZddlZd�Zd�Zd�Zdedefd�Zy)�Nc�p�tj|�r/t|�jd�d}|j�d|�d�Stj
|�r/t|�jd�d}|j�d|�d�S|jj�d|jj��S)zv
    Returns a fully-qualified name for the specified object, such as
    'landscape.lib.format.format_object()'.
    � ��.z()�)�inspect�ismethod�repr�split�
__module__�
isfunction�	__class__�__name__)�object�names  �6/usr/lib/python3/dist-packages/landscape/lib/format.py�
format_objectrs���
�����
�F�|�!�!�#�&�q�)���#�#�$�A�d�V�2�.�.�	�	�	�F�	#��F�|�!�!�#�&�q�)���#�#�$�A�d�V�2�.�.����)�)�
*�!�F�,<�,<�,E�,E�+F�G�G�c�(�|sd}t|�d�d�S)N��.02f�s��float)�secondss r�format_deltar�������G�n�T�
"�!�$�$rc�(�|sd}t|�d�d�S)Nrr�%r)�percents r�format_percentr!rr�pattern�returnc����tjdtj�}|j�D��cic]\}}|t	|���c}}��fd�}tj
|||�Scc}}w)a�Expand the pattern by replacing the params with values in `kwargs`.

    This implements a small subset of shell parameter expansion and the
    patterns can only be in the following forms:
        - ${parameter}
        - ${parameter:offset} - start at `offset` to the end
        - ${parameter:offset:length} - start at `offset` to `offset + length`
    For simplicity, `offset` and `length` MUST be positive values.
    z8\$\{([a-zA-Z][a-zA-Z0-9]*)(?::([0-9]+))?(?::([0-9]+))?\}c����|jd�}�|j�}|jd�|jd�}}|r"t|�}d}|r|t|�z}|||S|S)Nrr�)�group�lower�int)�match�param�result�offset�length�start�end�valuess       �r�_replacezexpandvars.<locals>._replace3sm������A�������
�&�����Q�����Q�������K�E��C���c�&�k�)���%��$�$��
r)�re�compile�	MULTILINE�items�str�sub)r"�kwargs�regex�k�vr2r1s      @r�
expandvarsr=#s`���
�J�J�C�
���
�E�%+�L�L�N�
3�D�A�q�a��Q��i�
3�F���6�6�%��7�+�+��!4s�A/)rr3rrr!r7r=�rr�<module>r?s.���	�H�$%�%�,��,�#�,r

Zerion Mini Shell 1.0