hyb
2026-01-07 c7f60dc7e9a36596f0e0d1787bd0cca4e9b57bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Ë
ñúh´    ã ó´—dZdgZddlmZmZmZmZdddœdedeed    ed
eed eed ef d „Z    dedeed    ed eeeffd„Z
dddœded
eed eed efd„Z y)aËFunctions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2
 
The functions declared in this module should cover the different
use cases needed to generate a string representation of a file size
using several different units. Since there are many standards regarding
file size units, three different functions have been implemented.
 
See Also:
    * `Wikipedia: Binary prefix <https://en.wikipedia.org/wiki/Binary_prefix>`_
 
Údecimalé)ÚIterableÚListÚOptionalÚTupleéú ©Ú    precisionÚ    separatorÚsizeÚsuffixesÚbaser r Úreturncóš—|dk(ry||kr|d›dSt|d«D]\}}||z}||ksŒndj||zz ||¬«S)Nrz1 byteú,z byteséz{:,.{precision}f}{separator}{}r
)Ú    enumerateÚformat)r rrr r ÚiÚsuffixÚunits        úLH:\Change_password\venv_build\Lib\site-packages\pip/_vendor/rich/filesize.pyÚ_to_strrs€€ð ˆq‚yØØ     ŠØq˜Ð Ð ä˜x¨Ó+ò‰    ˆˆ6ؐQ‰wˆØ $‹;Ù ðð ,× 2Ñ 2Ø     ‰tÑ    ØØØð     3ó ðócóT—t|«D]\}}||z}|||zksŒ||fSfS)z*Pick a suffix and base for the given size.)r)r rrrrrs      rÚpick_unit_and_suffixr+sH€ä˜xÓ(ò‰    ˆˆ6ؐQ‰wˆØ $˜‘+Ó Ø Ø ˆ<Ðð    ð ˆ<Ðrcó"—t|dd||¬«S)a3Convert a filesize in to a string (powers of 1000, SI prefixes).
 
    In this convention, ``1000 B = 1 kB``.
 
    This is typically the format used to advertise the storage
    capacity of USB flash drives and the like (*256 MB* meaning
    actually a storage capacity of more than *256 000 000 B*),
    or used by **Mac OS X** since v10.6 to report file sizes.
 
    Arguments:
        int (size): A file size.
        int (precision): The number of decimal places to include (default = 1).
        str (separator): The string to separate the value from the units (default = " ").
 
    Returns:
        `str`: A string containing a abbreviated file size and units.
 
    Example:
        >>> filesize.decimal(30000)
        '30.0 kB'
        >>> filesize.decimal(30000, precision=2, separator="")
        '30.00kB'
 
    )ÚkBÚMBÚGBÚTBÚPBÚEBÚZBÚYBièr
)r)r r r s   rrr4s €ô< Ø Ø8Ø ØØô  ðrN) Ú__doc__Ú__all__ÚtypingrrrrÚintÚstrrrr©rrú<module>r-sÓðñ
ð ˆ+€ç2Ó2ð !Ø"ò Ø
ðàs‰mðð ðð
˜‰}ð 𠘉}ð ð    óð2˜sð¨d°3©ið¸sðÀuÈSÐRUÈXÁóð !Ø"ò    $Ø
ð$ð˜‰}ð$ð˜‰}ð    $ð
    ô $r