MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/humanize/__pycache__/filesize.cpython-35.pyc


�S��@s7dZddd
dddiZddddd�ZdS)z"Bits & Bytes related humanization.�decimal�kB�MB�GB�TB�PB�EB�ZB�YB�binary�KiB�MiB�GiB�TiB�PiB�EiB�ZiB�YiB�gnuZKMGTPEZYFz%.1fc
Cs^|rtd}n|r&td}n
td}|s<|rBdnd}t|�}|dkrk|rkdS||kr�|r�d|S||kr�|r�d	|Sx�t|�D]s\}}||d
}	||	kr�|r�|d|||	|fS||	kr�|r�|d|||	|fSq�W|rD|d|||	|fS|d|||	|fS)
a�Format a number of byteslike a human readable filesize (eg. 10 kB).  By
    default, decimal suffixes (kB, MB) are used.  Passing binary=true will use
    binary suffixes (KiB, MiB) are used and the base will be 2**10 instead of
    10**3.  If ``gnu`` is True, the binary argument is ignored and GNU-style
    (ls -sh style) prefixes are used (K, M) with the 2**10 definition.
    Non-gnu modes are compatible with jinja2's ``filesizeformat`` filter.rr
rii��z1 Bytez%d Bytesz%dB�z %sz%s)�suffixes�float�	enumerate)
�valuer
r�format�suffix�base�bytes�i�sZunit�r �/filesize.py�naturalsizes,


r"N)rrrrrrrr	)rrr
rrrrr)�__doc__rr"r r r r!�<module>s