403Webshell
Server IP : 43.141.49.92  /  Your IP : 113.219.202.141
Web Server : Apache
System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.1.27
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.11/site-packages/dnf/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.11/site-packages/dnf/cli/__pycache__/format.cpython-311.pyc
�

8O�d��4�ddlmZddlmZdd�Zd	d�Zd�ZdS)
�)�unicode_literals)�long� c�:�gd�}|rd}nd}d}d}t|��dz
}|�d}||kr||kr|dz}||z}||kr||k�t|t��st|t��rd	}n|d
krd}nd}|t	|pd��|||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*
    )	r�k�M�G�T�P�E�Z�Yg@�@g�@i�r�Ngz%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.11/site-packages/dnf/cli/format.py�
format_numberrs������G�
��&�4�4��$�
�F�
�E��G���q� �I�
�~���
�6�/�/�e�i�/�/������$����6�/�/�e�i�/�/��&�#����*�V�T�":�":�����	�$���������U�6�;�Q�'�'�����?�?�@�c��|�|dkr|rdSdS|td��krdSt|��}|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*
    Nrz--:--:--z--:--�inf�Infinite�<z%02i:%02i:%02iz	%02i:%02i)rr)�seconds�	use_hours�minutes�hourss    r�format_timer(Is�����'�A�+�+��	%�Z�Z�$�W�	�E�%�L�L�	 �	 ��z��g�,�,���R�-���B�,���	4��r�M�E���l�G�#�u�g�w�&?�?�?��'�7�!3�3�3rc�d�d�d�|���D����S)N�
c3� K�|]	}d|zV��
dS)z  N�)�.0�ss  r�	<genexpr>zindent_block.<locals>.<genexpr>hs&����6�6�!�T�A�X�6�6�6�6�6�6r)�join�
splitlines)r.s r�indent_blockr2gs+���9�9�6�6�q�|�|�~�~�6�6�6�6�6�6rN)rr)r)�
__future__r�
dnf.pycomprrr(r2r,rr�<module>r5sq��"(�'�'�'�'�'�������3A�3A�3A�3A�j4�4�4�4�<7�7�7�7�7r

Youez - 2016 - github.com/yon3zu
LinuXploit