/usr/lib/python3.9/site-packages/dnf/cli/__pycache__
NameSizeModeActions
aliases.cpython-39.opt-1.pyc54920644editdlrm
aliases.cpython-39.pyc54920644editdlrm
cli.cpython-39.opt-1.pyc331390644editdlrm
cli.cpython-39.pyc332010644editdlrm
completion_helper.cpython-39.opt-1.pyc84320644editdlrm
completion_helper.cpython-39.pyc84320644editdlrm
demand.cpython-39.opt-1.pyc15970644editdlrm
demand.cpython-39.pyc15970644editdlrm
format.cpython-39.opt-1.pyc23610644editdlrm
format.cpython-39.pyc23610644editdlrm
main.cpython-39.opt-1.pyc54430644editdlrm
main.cpython-39.pyc54430644editdlrm
option_parser.cpython-39.opt-1.pyc175290644editdlrm
option_parser.cpython-39.pyc175290644editdlrm
output.cpython-39.opt-1.pyc572830644editdlrm
output.cpython-39.pyc573530644editdlrm
progress.cpython-39.opt-1.pyc46690644editdlrm
progress.cpython-39.pyc46690644editdlrm
term.cpython-39.opt-1.pyc118010644editdlrm
term.cpython-39.pyc118220644editdlrm
utils.cpython-39.opt-1.pyc32500644editdlrm
utils.cpython-39.pyc32500644editdlrm
__init__.cpython-39.opt-1.pyc5270644editdlrm
__init__.cpython-39.pyc5270644editdlrm
Edit: /usr/lib/python3.9/site-packages/dnf/cli/__pycache__/format.cpython-39.pyc (2361B)
a !c@s8ddlmZddlmZd ddZd ddZdd Zd S) )unicode_literals)long c Csgd}|rd}nd}d}d}t|d}|dur6d}||krX||krX|d}||}q6t|tslt|trrd }n|d krd }nd }|t|pd|||fS) aReturn 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* ) rkMGTPEZYg@@g@irNgz%i%s%sgfffff#@z%.1f%s%sz%.0f%s%s)len isinstanceintrfloat) numberZSIspaceZsymbolsstepZthreshdepthZ max_depthformatr2/usr/lib/python3.9/site-packages/dnf/cli/format.py format_numbers"   rcCsx|dus|dkr|rdSdSnV|tdkr.dSt|}|d}|d}|rh|d}|d}d|||fSd ||fSdS) aReturn 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--:--infZInfinite<z%02i:%02i:%02iz %02i:%02i)rr)ZsecondsZ use_hoursZminutesZhoursrrr format_timeIs rcCsddd|DS)N css|]}d|VqdS)z Nr).0srrr hzindent_block..)join splitlines)rrrr indent_blockgsr$N)rr)r)Z __future__rZ dnf.pycomprrrr$rrrrs   5