MOON
Server: Apache
System: Linux s5.yayogua.com.py 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
User: sanbercountryclu (1012)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //lib/python3.12/site-packages/dnf/cli/__pycache__/format.cpython-312.opt-1.pyc
�

�(f��2�ddlmZddlmZdd�Zdd�Zd�Zy)	�)�unicode_literals)�longc��gd�}|rd}nd}d}d}t|�dz
}|�d}||kDr||kr|dz}||z}||kDr||kr�t|t�st|t�rd}n
|d	krd
}nd}|t	|xsd�|||fzS)a�Return a human-readable metric-like string representation
    of a number.

    :param number: the number to be converted to a human-readable form
    :param SI: If is 0, this function will use the convention
       that 1 kilobyte = 1024 bytes, otherwise, the convention
       that 1 kilobyte = 1000 bytes will be used
    :param space: string that will be placed between the number
       and the SI prefix
    :return: a human-readable metric-like string representation of
       *number*
    )	� �k�M�G�T�P�E�Z�Yg@�@g�@i�r�gz%i%s%sgfffff�#@z%.1f%s%sz%.0f%s%s)�len�
isinstance�intr�float)	�number�SI�space�symbols�step�thresh�depth�	max_depth�formats	         �3/usr/lib/python3.12/site-packages/dnf/cli/format.py�
format_numberrs����G�
�&�4��$�
�F�
�E��G��q� �I�
�~���
�6�/�e�i�/������$����6�/�e�i�/��&�#��*�V�T�":���	�$�������U�6�;�Q�'�����?�?�@�c��|�|dkr|ryy|td�k(ryt|�}|dz}|dz}|r|dz}|dz}d|||fzSd||fzS)	a�Return a human-readable string representation of a number
    of seconds.  The string will show seconds, minutes, and
    optionally hours.

    :param seconds: the number of seconds to convert to a
       human-readable form
    :param use_hours: If use_hours is 0, the representation will
       be in minutes and seconds. Otherwise, it will be in hours,
       minutes, and seconds
    :return: a human-readable string representation of *seconds*
    rz--:--:--z--:--�inf�Infinite�<z%02i:%02i:%02iz	%02i:%02i)rr)�seconds�	use_hours�minutes�hourss    r�format_timer(Isx����'�A�+��Z�$�	�E�%�L�	 ���g�,���R�-���B�,����r�M�E���l�G�#�u�g�w�&?�?�?��'�7�!3�3�3rc�N�djd�|j�D��S)N�
c3�&K�|]	}d|z���y�w)z  N�)�.0�ss  r�	<genexpr>zindent_block.<locals>.<genexpr>hs����6�~�!�T�A�X�~�s�)�join�
splitlines)r.s r�indent_blockr2gs���9�9�6�q�|�|�~�6�6�6rN)rr)r)�
__future__r�
dnf.pycomprrr(r2r,rr�<module>r5s��"(��3A�j4�<7r